|
BDE 4.14.0 Production release
|
#include <bslstl_vector.h>
Public Types | |
| typedef BloombergLP::bsls::Types::UintPtr | UintPtr |
| typedef UintPtr | value_type |
| typedef UintPtr * | pointer |
| typedef UintPtr | reference |
| typedef iterator_traits< ITERATOR >::difference_type | difference_type |
| typedef iterator_traits< ITERATOR >::iterator_category | iterator_category |
Public Member Functions | |
| vector_UintPtrConversionIterator (ITERATOR it) | |
Create a proxy iterator adapting the specified it. | |
| vector_UintPtrConversionIterator & | operator++ () |
| UintPtr | operator* () const |
Friends | |
| bool | operator!= (const vector_UintPtrConversionIterator &lhs, const vector_UintPtrConversionIterator &rhs) |
| bool | operator== (const vector_UintPtrConversionIterator &lhs, const vector_UintPtrConversionIterator &rhs) |
| bool | operator< (const vector_UintPtrConversionIterator &lhs, const vector_UintPtrConversionIterator &rhs) |
| difference_type | operator- (const vector_UintPtrConversionIterator &lhs, const vector_UintPtrConversionIterator &rhs) |
This class provides a minimal proxy iterator 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. VALUE_TYPE shall be a pointer type, and ITERATOR shall be a standard conforming iterator that dereferences to a type implicitly convertible to VALUE_TYPE
See bslstl_vector
| typedef iterator_traits<ITERATOR>::difference_type bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::difference_type |
| typedef iterator_traits<ITERATOR>::iterator_category bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::iterator_category |
| typedef UintPtr* bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::pointer |
| typedef UintPtr bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::reference |
| typedef BloombergLP::bsls::Types::UintPtr bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::UintPtr |
| typedef UintPtr bsl::vector_UintPtrConversionIterator< VALUE_TYPE, ITERATOR >::value_type |
|
inline |
|
inline |
Return the value of the pointer this iterator refers to, converted to an unsigned integer.
|
inline |
Increment this iterator to refer to the next element in the underlying sequence, and return a reference to this object.
|
friend |
|
friend |
Return the distance between the specified lhs iterator and the specified rhs iterator. The behavior is undefined if lhs and rhs do not iterate over the same sequence, or if the (template parameter) type ITERATOR is not a random access iterator.
|
friend |
Return true if the specified lhs iterator is earlier in the underlying sequence than the specified rhs iterator, and false otherwise. The behavior is undefined if lhs and rhs do not iterate over the same sequence, or if the (template parameter) type ITERATOR is not a random access iterator.
|
friend |
Return true if the specified lhs and rhs iterators refer to the same element in the same underlying sequence or both refer to the past-the-end element of the same sequence, and false otherwise. The behavior is undefined if lhs and rhs do not iterate over the same sequence.