The member function empty of associative containers has the attribute nodiscard. It seems that the new member function contains should also have the attribute, should not it?
 
With best regards,
(Vlad from Moscow)
 
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com