opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
associative_container_key_for.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <concepts>
6#include <ranges>
7
8namespace osc
9{
10 // Satisfied if `Key` is a valid key for the given associative
11 // container `Container`.
12 template<typename Key, typename Container>
13 concept AssociativeContainerKeyFor = requires(Container& c, Key key) {
15 { c.find(key) } -> std::same_as<std::ranges::iterator_t<Container>>;
16 };
17}
Definition associative_container_key_for.h:13
Definition associative_container.h:12
Definition custom_decoration_generator.h:5
Key
Definition key.h:6
constexpr U to(T &&value)
Definition conversion.h:56