class
<iterator>
std::output_iterator_tagstruct output_iterator_tag {};
Output iterator category
Empty class to identify the category of an iterator as an output iterator: Output iteratorsAll forward, bidirectional and random-access iterators that are not constant iterators are also valid output iterators.
There is not a single type of output iterator: Each container may define its own specific iterator type able to iterate through it and access its elements. But all output iterators support -at least- the following operations:
property valid expressions Is copy-constructible, copy-assignable and destructibleX b(a);
b = a;
Can be dereferenced as an lvalue (if in a dereferenceable state).
*a = t
Can be incremented. ++a
a++
*a++ = t
property valid expressions Is copy-constructible, copy-assignable and destructible X b(a);
b = a;
Can be dereferenced as an lvalue (if in a dereferenceable state).
*a = t
Can be incremented. ++a
a++
*a++ = t
Lvalues are swappable. swap(a,b)
Algorithms requiring output iterators should be single-pass output algorithms: each iterator position is dereferenced once at most.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4