Metafunction selecting an iterator adaptor for pointer‐vector members.

Synopsis

Declared in <bslstl_vector.h>

template<
    class TARGET,
    class ITERATOR,
    bool = is_integral<ITERATOR>::value>
struct vector_ForwardIteratorForPtrs;

Description

This metafunction provides an appropriate iterator adaptor for the specified (template parameter) type ITERATOR in order to implement members of the vector partial template specialization for vectors of pointers to the (template parameter) type TARGET. The metafunction will return the original ITERATOR type unless it truly is an iterator, using is_integral as a proxy for testing that a type is NOT an iterator. This is needed to disambiguate only the cases of users passing 0 as a null‐pointer value to functions requesting a number of identical copies of an element.

Type Aliases

Name

Description

type

This typedef is an alias to the specified (template parameter) ITERATOR type.

Specializations

Name

Description

vector_ForwardIteratorForPtrs<TARGET, ITERATOR, false>

Specialization wrapping non‐integral iterators for pointer vectors.

Created with MrDocs