mardi 5 décembre 2017

non-const find() in std::unordered_set

Why for there is non-const find() in std::unordered_set()?

iterator find( const Key& key );
const_iterator find( const Key& key ) const;

iterator is the same as const_iterator, why there is non-const version of find()?

http://ift.tt/2y5ovBx

Aucun commentaire:

Enregistrer un commentaire