P4139R2 — Better Name for Better Lookups in P3091
Nathan Myers, Pablo Halpern
WG21
Revisions R3Jul 2026R2May 2026R1Apr 2026R0Apr 2026
[[P3091R5]](https://wg21.link/p3091r5), forwarded to LWG for C++29, adds member functions `get` to associative containers in the Standard Library. These member functions work like `operator[]` or `at`, but return an `optional<T&>` value instead of a simple reference; when lookup fails, they return the empty object. While the feature was strongly favored, support for the name `get` yielded only a weak consensus, with opposition to the name focusing on the fact that elsewhere in the Standard Library, `get` calls (with one exception) cannot fail or take not-strictly-bounded time.