vector を使用して何かを行っていますが、次の条件が false と評価されていることがわかりました。これは理解できませんでした。
コードは次のとおりです。
#include "stdio.h"
#include <vector>
using namespace std;
int main()
{
// an empty vector
vector<int> v;
// print 0
printf ("size of the vector is %d \n", v.size());
// the condition is false, why?
if (0 > v.size()-1) {
printf ("it should occur \n");
}
}