StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::HasKeyType Concept Reference

StormByte::Type::Container that publishes a nested key_type. More...

#include <StormByte/type_traits/containers.hxx>

Concept definition

template<typename C>
requires { typename std::remove_cvref_t<C>::key_type; }
Has begin(), end() and value_type, and is not a StormByte::Type::String.
Definition containers.hxx:167
StormByte::Type::Container that publishes a nested key_type.
Definition containers.hxx:187

Detailed Description

StormByte::Type::Container that publishes a nested key_type.

Template Parameters
CContainer type (cv/ref ignored for the nested lookup).

Typical matches: std::map, std::set, std::unordered_map, std::unordered_set.

template<Type::HasKeyType T>
void process(T container);