dimanche 2 juillet 2017

Convert std::vector

I want to convert std::vector<const T*> to std::vector<const T>. However, as you know due to "const T" I can't assign.

I guess there can be someway to leverage

template< class InputIt >
void assign( InputIt first, InputIt last );

to make this happen. However, I can't find a way out.

Look for advice. Thanks!!

Aucun commentaire:

Enregistrer un commentaire