# std::flat_multimap<Key,T,Compare,KeyContainer,MappedContainer>::values

> C++ Atlas: `cppatlas.com/w/cpp/container/flat_multimap/values` | Source: https://en.cppreference.com/w/cpp/container/flat_multimap/values | Domain: Containers | Standards: C++23

Return a constant reference to the adapted values container. Equivalent to return c.values;.

## Official Specification Summary (cppreference)

```cpp
const mapped_container_type& values() const noexcept; // (since C++23)
```

Return a constant reference to the adapted values container. Equivalent to `return c.values;`.

### Parameters

(none)

### Return value

The underlying values container.

### Complexity

Constant.

### Example

```cpp
#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:

```text
[1.1, 2.2, 3.3]
```

### See also

- [`keys`](https://en.cppreference.com/w/cpp/container/flat_multimap/keys): direct access to the underlying keys container (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/flat_multimap/values (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.