Cbeam
Loading...
Searching...
No Matches
cbeam::convert::has_key_and_mapped_type< T, typename > Struct Template Reference

Type trait to check if a given type supports key_type and mapped_type, similar to std::map. More...

#include <map.hpp>

Inheritance diagram for cbeam::convert::has_key_and_mapped_type< T, typename >:
Collaboration diagram for cbeam::convert::has_key_and_mapped_type< T, typename >:

Detailed Description

template<typename T, typename = void>
struct cbeam::convert::has_key_and_mapped_type< T, typename >

Type trait to check if a given type supports key_type and mapped_type, similar to std::map.

This trait checks if a type T defines 'key_type' and 'mapped_type', which are typical for associative containers like std::map. It inherits from std::true_type if T supports these types, and std::false_type otherwise.

Template Parameters
TThe type to check.

The documentation for this struct was generated from the following file: