std::flat_multimap::values(3)
π std::flat_multimap::values(3) π
okay bestie, welcome to the std::flat_multimap::values(3) page from the C++ Standard Libary (yes, thatβs the manual name exactly, typo and all ππ
). This one is short, sweet, and lowkey iconic.
πΈ NAME πΈ
std::flat_multimap::values β literally std::flat_multimap::values, bestie. Thatβs the name. Periodt. π
β¨ Synopsis β¨
const mapped_container_type& values() const noexcept; (since C++23)
okay so the synopsis says: Return a constant reference to the adapted values container. Equivalent to return c.values;. Thatβs the whole vibe π«Ά
π Parameters π
(none) β like, zero parameters, bestie. Not a single one. Nada. β¨
π Return value π
The underlying values container. Thatβs what you get back, and itβs serving. π
β‘ Complexity β‘
Constant. β‘
πΈ Example πΈ
run this code, bestie:
// Run this code
#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()), const std::vector<int>&>);
std::println("{}", map.values());
}
π Output π
[1.1, 2.2, 3.3]
π¦ See also π¦
keysβ direct access to the underlying keys container (public member function)
okay thatβs the whole page, bestie! source: http://cppreference.com, version/date: 2024.06.10, page: std::flat_multimap::values(3). bye bestie, mwah ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms