mercredi 1 juin 2016

What is the best\simplest\fastest way to create set of 1 element? (C++)

Somethimes i need sets (or any other container) of 1 element of user's type and create them this way:

boost::assign::list_of(typeVariable).convert_to_container<std::unordered_set<UserType> >()

Do anyone know more beautiful way?

Aucun commentaire:

Enregistrer un commentaire