bsl::Vector_RangeIteratorCategory

Metafunction selecting an iterator category for a range pair.

Synopsis

Declared in <bslstl_vector.h>

template<
    class t_ITERATOR,
    class t_SENTINEL,
    bool t_NOTSPECIALIZED = is_fundamental<t_ITERATOR>::value || is_fundamental<t_SENTINEL>::value>
struct Vector_RangeIteratorCategory;

Description

This struct provides a primitive means to determine the iterator category for an iterator/sentinel pair where there is a preference to treat any iterator where the insertDistance can be computed as a forward iterator, even if it does not meet the ranges concepts needed to be treated as one.

Type Aliases

NameDescription
type This typedef is an alias to the iterator category used for range insertion.

Specializations

NameDescription
Vector_RangeIteratorCategory<t_ITERATOR, t_SENTINEL, true> Specialization of Vector_RangeIteratorCategory for fundamental types.