c++ - What does this vector push_back statement mean? -


waht following mean?

vector<vector<pair<int, int>>> graph; graph.push_back(vector<pair<int, int>>()); // statement mean? 

i wondering because statement didn't have values. can see rest of code browsing initialized locations being referenced later in code. that's pretty thought, not sure. sorry if newbie question, i'm new vectors. replies.

it "adds" newly initialized vector<pair<int,int>> "back" of vector name graph (i.e. after last entry, if any).


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -