Namespaces
Variants
Views
Actions

cpp/named req/OutputIterator

From cppreference.com
< cpp‎ | named req
Revision as of 18:53, 19 April 2012 by P12bot (Talk | contribs)

Template:cpp/concept/title Template:cpp/concept/sidebar

An Iterator that can access the pointed element for writing.
A class implementing this concept is std::ostream_iterator.

Requirements

Expression Return Equivalent expression Notes
*i = o it may not be possible to write twice in the same iterator
++i It& After this, copies of a may be invalidated.

Post: &r == &++r

i++ const It& It temp = i;

++i;
return temp;

*i++ = o *i = o;

++i;