samedi 30 janvier 2016

Initialize std::vector

I have the following array:

static const char * const names[] = { "Banana", "Apple", "Kiwi" }

Is it possible to construct a std::vector<std::string> from this with a simple constructor call?

Aucun commentaire:

Enregistrer un commentaire