yfast 0.6.1
Loading...
Searching...
No Matches
yfast::internal::MapGeneric Concept Reference

Concept definition

template<typename Map, typename Key, typename Value>
concept yfast::internal::MapGeneric = requires (Map map, Key key) {
{ map[key] } -> std::same_as<Value&>;
{ map.at(key) } -> std::convertible_to<Value>;
{ map.contains(key) } -> std::convertible_to<bool>;
{ map.erase(key) };
{ map.clear() };
}
Definition concepts.h:9