Implementation of a deque iterator, parameterized by the VALUE_TYPE, for a deque with the parameterized BLOCK_LENGTH, and suitable for use by the bslstl::RandomAccessIterator adapter. Note that BLOCK_LENGTH is the number of items of VALUE_TYPE within a block, not the size of a block in bytes.
Synopsis
Declared in <bslalg_dequeiterator.h>
template<
class VALUE_TYPE,
int BLOCK_LENGTH>
class DequeIterator;
Member Functions
Name |
Description |
|
Constructors |
Return the address of the first element in the block pointed to by this iterator. |
|
Return the address of (one‐past) the last element in the block pointed to by this iterator. |
|
Return the address of the block pointer pointed to by this iterator. |
|
Set this iterator to point to the first element of the next block. |
|
Return the offset of the element pointed to by this iterator, from the beginning of the block containing it. |
|
Return a reference to the parameterized |
|
Return an iterator pointing the element at the specified |
|
Increment this iterator to point to the next element in the corresponding deque (i.e., the element following the current one in the same block or, if the current element is the last one in the block, the first element in the next block). |
|
Advance this iterator by the specified |
|
Subtraction operators |
|
Decrement this iterator to point to the previous element in the corresponding deque (i.e., the element preceding the current one in the same block or, if the current element is the first one in the block, the last element in the previous block). |
|
Move this iterator backward by the specified |
|
Set this iterator to point to the first (not the last) element of the previous block. |
|
Return the number of elements in the block pointed to by this iterator, until the end of this block, starting at (and including) the element pointed to by this iterator. |
|
Set this iterator to point to the first element of the block pointed to by the specified |
|
Return the address of the parameterized |
|
Decrement this iterator to point to the next element in the block of the corresponding deque. The behavior is undefined unless this iterator is pointed to a valid position of the deque. Note that this method is used only for optimization purposes in |
|
Increment this iterator to point to the next element in the block of the corresponding deque. The behavior is undefined unless this iterator is pointed to a valid position of the deque. Note that this method is used only for optimization purposes in |
Specializations
Name |
Description |
This partial specialization of |
Friends
Name |
Description |
Perform a three‐way comparison between the specified |
|
Return |
Created with MrDocs