StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::HasKeyType Concept Reference

Concept to check if a container has a key_type member type. More...

#include <type_traits.hxx>

Concept definition

template<typename C>
concept StormByte::Type::HasKeyType = Container<C> && requires { typename C::key_type; }
Concept to check if a type is a container (excluding strings).
Definition type_traits.hxx:96
Concept to check if a container has a key_type member type.
Definition type_traits.hxx:147

Detailed Description

Concept to check if a container has a key_type member type.

Template Parameters
ContainerThe container type to check.

A type satisfies HasKeyType if it defines a key_type member type.

template<Type::HasKeyType T>
void process(T container) { ... }