Namespaces
Variants
Views
Actions

Talk:cpp/container/map/at

From cppreference.com
< Talk:cpp‎ | container‎ | map

In C++98 standard there were no map::at member functions: http://www.lirmm.fr/~ducour/Doc-objets/ISO+IEC+14882-1998.pdf

Why this page does not say that they appeared only in C++11?

it used to say that but it was lost in the edits at some point. Technically map::at appeared in lwg 464, unordered_map::at in lwg 761, both adopted into the 2008 standard draft. --Cubbi (talk) 09:28, 2 January 2022 (PST)
on the other hand, it appears compilers did implement LWG464 as a DR; LLVM, GNU, STL - these are all enabled in C++98 mode. So at most we need a DR box. --Cubbi (talk) 09:41, 2 January 2022 (PST)