Struct is_iterator< Type, std::void_t< typename std::iterator_traits< Type >::iterator_category > >

Synopsis

#include <src/entt/core/type_traits.hpp>

template<typename Type>
struct is_iterator<Type, std::void_t<typename std::iterator_traits<Type>::iterator_category>>
    : std::true_type

Description

Provides the member constant value to true if a given type is an iterator, false otherwise.

Template Parameters

Type - The type to test.

Inheritance

Ancestors: true_type

Source

Lines 518-521 in src/entt/core/type_traits.hpp.

template<typename Type>
struct is_iterator<Type, std::void_t<typename std::iterator_traits<Type>::iterator_category>>
    : std::true_type
{};





Add Discussion

Log in to comment