#include <rangelib/operator_adaptors.hpp>

R is an incomplete type at the time of the template parsing. Hence, we cannot deduce reference and const_reference from R. This is why the traits type is required in the form of the T parameter. Range operators | |
| operator boolean_type () const | |
| Indicates whether the range is open. | |
| reference | operator* () |
| Returns the current value in the range. | |
| const_reference | operator* () const |
| Returns the current value in the range. | |
| adapted_range_type & | operator++ () |
| Advances the current position in the range. | |
| adapted_range_type | operator++ (int) |
| Advances the current position in the range, returning a copy of the range prior to its being advanced. | |
Public Types | |
| typedef R | adapted_range_type |
| The range type. | |
| typedef T | traits_type |
| The traits type. | |
| typedef mutating_operator_adaptor< R, T > | class_type |
| The type of this instantiation. | |
| typedef traits_type::reference | reference |
| The mutating (non-const) reference type. | |
| typedef traits_type::const_reference | const_reference |
| The non-mutating (const) reference type. | |
Protected Member Functions | |
| mutating_operator_adaptor () | |
| Default constructor. | |
| typedef R adapted_range_type |
The range type.
| typedef T traits_type |
| typedef mutating_operator_adaptor<R, T> class_type |
| typedef traits_type::reference reference |
| typedef traits_type::const_reference const_reference |
| mutating_operator_adaptor | ( | ) | [inline, protected] |
Default constructor.
This is defined protected to ensure that the adaptor may only be used as a base class, and not instantiated directly
| operator boolean_type | ( | ) | const [inline] |
Indicates whether the range is open.
| reference operator* | ( | ) | [inline] |
Returns the current value in the range.
| const_reference operator* | ( | ) | const [inline] |
Returns the current value in the range.
| adapted_range_type& operator++ | ( | ) | [inline] |
Advances the current position in the range.
| adapted_range_type operator++ | ( | int | ) | [inline] |
Advances the current position in the range, returning a copy of the range prior to its being advanced.
1.5.6