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.

Synopsis

Declared in <bslstl_vector.h>

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

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>

This metafunction specialization 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.

Created with MrDocs