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

Type trait to detect whether T has begin() and end() methods. More...

#include <type_traits.h>

Inheritance diagram for qb::detail::has_begin_end< T >:
Collaboration diagram for qb::detail::has_begin_end< T >:

Static Public Attributes

static bool const beg_value = sizeof(f<T>(nullptr)) == sizeof(yes)
 Whether the type has a valid begin() method.
static bool const end_value = sizeof(g<T>(nullptr)) == sizeof(yes)
 Whether the type has a valid end() method.

Detailed Description

template<typename T>
struct qb::detail::has_begin_end< T >

Type trait to detect whether T has begin() and end() methods.

Checks if the type has proper const_iterator returning begin and end methods.

Template Parameters
TType to check