qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::is_mappish< T > Struct Template Reference

Type trait to check if a type T is map-like. More...

#include <type_traits.h>

Inheritance diagram for qb::is_mappish< T >:
Collaboration diagram for qb::is_mappish< T >:

Detailed Description

template<typename T>
struct qb::is_mappish< T >

Type trait to check if a type T is map-like.

A type is considered map-like if it has key_type and mapped_type nested types, and an operator[] that takes a const key_type&.

Template Parameters
TThe type to check.
Returns
std::true_type if T is map-like, std::false_type otherwise.