opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
liboscar
concepts
associative_container_key_for.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
liboscar/concepts/associative_container.h
>
4
5
#include <concepts>
6
#include <ranges>
7
8
namespace
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) {
14
requires
AssociativeContainer<Container>
;
15
{
c
.find(key) } -> std::same_as<std::ranges::iterator_t<Container>>;
16
};
17
}
associative_container.h
osc::AssociativeContainerKeyFor
Definition
associative_container_key_for.h:13
osc::AssociativeContainer
Definition
associative_container.h:12
osc
Definition
custom_decoration_generator.h:5
osc::Key
Key
Definition
key.h:6
osc::to
constexpr U to(T &&value)
Definition
conversion.h:56
Generated by
1.9.8