mercredi 4 mai 2016

Is std::vector::begin() from priorC++11 equivalent to std::vector::data() in C++11?

Is std::vector::begin() from prior-C++11 equivalent to std::vector::data() in C++11? The reason I'm asking this, earlier than C++11, I used to treat std::vector::begin() as a pointer but after C++11, it's not, and i cannot cast to a pointer equivalent. So, can I use data() instead after C++11?

Aucun commentaire:

Enregistrer un commentaire