Struct is_iterator_type< Type, It, std::enable_if_t<!std::is_same_v< Type, It >, std::void_t< typename It::iterator_type > > >

Synopsis

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

template<typename Type, typename It>
struct is_iterator_type<Type, It, std::enable_if_t<!std::is_same_v<Type, It>, std::void_t<typename It::iterator_type>>>
    : is_iterator_type<Type, typename It::iterator_type>

Description

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

Template Parameters

Type - The type to test.

It - Required iterator type.

Inheritance

Ancestors: is_iterator_type

Source

Lines 550-553 in src/entt/core/type_traits.hpp.

template<typename Type, typename It>
struct is_iterator_type<Type, It, std::enable_if_t<!std::is_same_v<Type, It>, std::void_t<typename It::iterator_type>>>
    : is_iterator_type<Type, typename It::iterator_type>
{};





Add Discussion

Log in to comment