std::flat_map<Key,T,Compare,KeyContainer,MappedContainer>::contains
From cppreference.com
bool contains( const Key& key ) const; |
(1) | (since C++23) (constexpr since C++26) |
template< class K > bool contains( const K& x ) const; |
(2) | (since C++23) (constexpr since C++26) |
1) Checks if there is an element with key equivalent to key in the container.
2) Checks if there is an element with key that compares equivalent to x.
This overload participates in overload resolution only if
Compare
is transparent. It allows calling this function without constructing an instance of Key
.Contents |