I wanted to initialize a vector of pairs with something like this
std::vector< std::pair<bool, bool> > myvector(initSequence.size(), X );
what shall I substitute in place of X, if I want to initialize every pair with (false, false)?
Thank you
I wanted to initialize a vector of pairs with something like this
std::vector< std::pair<bool, bool> > myvector(initSequence.size(), X );
what shall I substitute in place of X, if I want to initialize every pair with (false, false)?
Thank you
or
Nothing.
std::pair<bool, bool>
will be default constructed asmake_pair(false, false)
.