Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to initialize a vector of pairs in c++

#include <utility>

vector<pair<int, int>> myVec (N, std::make_pair(-1, -1));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #vector #pairs
ADD COMMENT
Topic
Name
3+7 =