std::flat_multimap::values(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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