Proxy range adapting pointer iterators to uintptr_t values.

Synopsis

Declared in <bslstl_vector.h>

template<
    class t_VALUE_TYPE,
    class t_ITERATOR,
    class t_SENTINEL>
struct vector_UintPtrRangeAdapter;

Description

This class provides a minimal proxy range adapter, transforming pointers to uintptr_t values on the fly, for only the operations needed to implement the member functions and constructors of the vector partial template specialization that take iterator ranges as arguments. While it does not provide a standard conforming iterator itself, if provides exactly sufficient behavior to implement all the needed members. t_VALUE_TYPE shall be a pointer type, and [d_begin, d_end)] is a range of the input values.

Type Aliases

Name

Description

const_iterator

This typedef is an alias to iterator.

iterator

This typedef is an alias to the converting iterator for t_VALUE_TYPE over t_ITERATOR.

Member Functions

Name

Description

begin

Return a converting iterator to the beginning of this range.

end

Return the sentinel at the end of this range.

Data Members

Name

Description

d_begin

Beginning of the adapted iterator range.

d_end

End of the adapted iterator range.

Non-Member Functions

Name

Description

vector_makeUintPtrRangeAdapter

Factory function for vector_UintPtrRangeAdapter.

Created with MrDocs