What is the easiest way to check if a vector is empty?
#include <iostream>
#include <vector>
using namespace std;
typedef std::vector<double> Vec;
typedef std::vector<Vec> Mat;
int main(){
Vec v; // this is what i consider to be an "empty" v
if( /*check if v is empty here*/ ) cout<< "v is empty!" <<endl;
return 0;
}