I have some code given to me by another person in which we have a structure
struct Pair { string s1; string s2; bool equivalent; };
You can use Boost.Assign, which is a syntactic sugar for creating a vector and then populating it:
using std::vector; using namespace boost::assign; vector v = list_of(Pair("s11", "s12", true)(Pair("s21", "s22", false));