Почему в std::unordered_set()
есть неконстантный find()
?
iterator find( const Key& key );
const_iterator find( const Key& key ) const;
iterator
такой же, как const_iterator
, почему существует неконстантная версия find()
?
http://en.cppreference.com/w/cpp/container/unordered_set/find
find() ***const***
иfind() /* no const */
для методаfind()
. - person vladon   schedule 05.12.2017iterator
класса-члена и подходящегоfind()
. - person Sam Varshavchik   schedule 05.12.2017find
для получения неконстантного итератора. - person François Andrieux   schedule 05.12.2017