Category: iterators | Component type: type |
Parameter | Description | Default |
---|---|---|
T | The otl_input_iterator's value type. Operator* returns a const T&. | |
Distance | The otl_input_iterator's distance type. | ptrdiff_t |
The value type T must be a model of Default Constructible.
The distance type must, as described in the Input Iterator requirements, be a signed integral type.
Member | Where defined | Description |
---|---|---|
otl_input_iterator() | otl_input_iterator | See below. |
otl_input_iterator(otl_stream&) | otl_input_iterator | See below. |
otl_input_iterator(const otl_input_iterator&) | Trivial Iterator | The copy constructor |
otl_input_iterator& operator=(const otl_stream&) | Trivial Iterator | The assignment operator |
const T& operator*() const | Input Iterator | Returns the next object in the stream. |
otl_input_iterator& operator++() | Input Iterator | Preincrement. |
otl_input_iterator& operator++(int) | Input Iterator | Postincrement. |
bool operator==(const otl_input_iterator&, const otl_input_iterator&) | Trivial iterator | The equality operator. This is a global function, not a member function. |
input_iterator_tag iterator_category(const otl_input_iterator&) | iterator tags | Returns the iterator's category. |
T* value_type(const otl_input_iterator&) | iterator tags | Returns the iterator's value type. |
Distance* distance_type(const otl_input_iterator&) | iterator tags | Returns the iterator's distance type. < |
Function | Description |
---|---|
otl_input_iterator() | The default constructor: Constructs an end-of-stream iterator. This is a past-the-end iterator, and it is useful when constructing a "range". |
otl_input_iterator(otl_stream& s) | Creates an otl_input_iterator that reads values from the OTL stream s. When s reaches end of stream, this iterator will compare equal to an end-of-stream iterator created using the default constructor. |
Copyright © 1996-2024, Sergei Kuchin, email: skuchin@gmail.com, skuchin@gmail.com.
Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.