Reverse iterator adapter for calendar iterators.
Declared in <bdlt_calendarreverseiteratoradapter.h>
template<class ITERATOR>
class CalendarReverseIteratorAdapter;
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+=).
| Name | Description |
|---|---|
difference_type | Iterator difference type. |
pointer | Iterator pointer type. |
reference | Iterator reference type. |
value_type | Iterator value type. |
| Name | Description |
|---|---|
CalendarReverseIteratorAdapter [constructor] | Constructors |
~CalendarReverseIteratorAdapter [destructor] | Destroy this object. |
operator= | Assignment operators |
forwardIterator | Return the forward iterator referring to the element in the forward sequence after the element referred to by this reverse iterator. |
operator* | Return a reference to the element referred to by this reverse iterator. |
operator++ | Advance this reverse iterator to the next element and return *this. |
operator-- | Regress this reverse iterator to the previous element and return *this. |
operator-> | Return a pointer to the element referred to by this reverse iterator. |
| Name | Description |
|---|---|
operator!= | Return true if lhs and rhs do not have the same value, and false otherwise. |
operator++ | Advance iterator and return a copy of its prior value. |
operator-- | Regress iterator and return a copy of its prior value. |
operator== | Return true if lhs and rhs have the same value, and false otherwise. |