A library for working with phylogenetic and population genetic data.
is_iterator_tag_based< T, typename > Struct Template Reference

#include <genesis/utils/core/type_traits.hpp>

Inherits false_type.

Detailed Description

template<class T, typename = void>
struct genesis::utils::is_iterator_tag_based< T, typename >

Return whether a type is an iterator.

Usage example: static_assert( is_iterator_tag_based<int*>::value, "..." );

We use a conservative approach here, testing the iterator_category instead of just the type properties. For a property-based approach, see https://stackoverflow.com/a/26768887/4184258

See also
is_iterator_tag_based, is_input_iterator_tag_based, is_output_iterator_tag_based, is_forward_iterator_tag_based, is_bidirectional_iterator_tag_based, is_random_access_iterator_tag_based

Definition at line 81 of file type_traits.hpp.

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