This reverse iterator adapter provides a subset of the bsl::reverse_iterator interface that can be used with the calendar iterators defined in bdlt. Specifically, the types value_type, difference_type, pointer, and reference are defined but iterator_category is not defined (since this is not a fully‐compliant iterator). Furthermore, the methods appropriate for random‐access iterators are not included (e.g., operator+=).
Synopsis
Declared in <bdlt_calendarreverseiteratoradapter.h>
template<class ITERATOR>
class CalendarReverseIteratorAdapter;
Type Aliases
Name |
Description |
Iterator difference type. |
|
Iterator pointer type. |
|
Iterator reference type. |
|
Iterator value type. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assignment operators |
|
Return the forward iterator referring to the element in the forward sequence after the element referred to by this reverse iterator. |
|
Return a reference to the element referred to by this reverse iterator. The behavior is undefined unless this iterator is within the bounds of the underlying sequence. |
|
Modify this reverse iterator to refer to the next element in the reverse iteration sequence, and return a reference providing modifiable access to this reverse iterator. The behavior is undefined unless, on entry, this reverse iterator does not have the past‐the‐end value for a reverse iterator over the underlying sequence. |
|
Modify this reverse iterator to refer to the previous element in the reverse iteration sequence, and return a reference providing modifiable access to this reverse iterator. The behavior is undefined unless, on entry, this reverse iterator does not have the same value as a reverse iterator at the start of the underlying sequence. |
|
Return a pointer to the element referred to by this reverse iterator. The behavior is undefined unless this iterator is within the bounds of the underlying sequence. |
Non-Member Functions
Name |
Description |
Return |
|
Modify the specified |
|
Modify the specified |
|
Return |
Created with MrDocs