how to check memeber of structure is empty if a vector is defined of structure type :     

struct A { int rollno; int emplyno; }; 
------------------------------------------------------------------------
int main() { vector<A> obj; obj.push_back({10,112}); if (obj.rollno ==0) // error { cout<<"rollno is empty"<<endl; } }