(C++17) | ||||
| Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(C++26) | ||||
(C++11) | ||||
| Associative | ||||
| Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Adaptors | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Views | ||||
(C++20) | ||||
(C++23) | ||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
const mapped_container_type& values()constnoexcept; | (since C++23) | |
Return a constant reference to the adapted values container. Equivalent toreturn c.values;.
Contents |
(none)
The underlying values container.
Constant.
#include <flat_map>#include <print>#include <type_traits>#include <vector> int main(){std::flat_multimap<int,double> map{{1,1.1},{2,2.2},{3,3.3}}; // The default values container is std::vector: static_assert(std::is_same_v<decltype(map.values()),conststd::vector<int>&>); std::println("{}", map.values());}
Output:
[1.1, 2.2, 3.3]
| direct access to the underlying keys container (public member function)[edit] |