Files
boost_iterator/doc/function_output_iterator_ref.rst
T

63 lines
1.5 KiB
ReStructuredText
Raw Normal View History

2003-08-05 19:42:37 +00:00
::
template <class UnaryFunction>
class function_output_iterator {
public:
2004-01-27 04:50:52 +00:00
typedef std::output_iterator_tag iterator_category;
typedef void value_type;
typedef void difference_type;
typedef void pointer;
typedef void reference;
2003-08-05 19:42:37 +00:00
2004-01-27 04:50:52 +00:00
explicit function_output_iterator();
2003-08-05 19:42:37 +00:00
2004-01-27 04:50:52 +00:00
explicit function_output_iterator(const UnaryFunction& f);
/* see below */ operator*();
2003-08-05 19:42:37 +00:00
function_output_iterator& operator++();
function_output_iterator& operator++(int);
2004-01-27 04:50:52 +00:00
private:
UnaryFunction m_f; // exposition only
2003-08-05 19:42:37 +00:00
};
2004-01-27 04:50:52 +00:00
``function_output_iterator`` requirements
.........................................
``UnaryFunction`` must be Assignable and Copy Constructible.
``function_output_iterator`` models
...................................
``function_output_iterator`` is a model of the Writable and
Incrementable Iterator concepts.
2003-08-05 19:42:37 +00:00
``function_output_iterator`` operations
2004-01-27 04:50:52 +00:00
.......................................
2003-08-05 19:42:37 +00:00
``explicit function_output_iterator(const UnaryFunction& f = UnaryFunction());``
2004-01-27 04:50:52 +00:00
:Effects: Constructs an instance of ``function_output_iterator``
with ``m_f`` constructed from ``f``.
2003-08-05 19:42:37 +00:00
2004-01-27 04:50:52 +00:00
``operator*();``
2003-08-05 19:42:37 +00:00
2004-01-27 04:50:52 +00:00
:Returns: An object ``r`` of unspecified type such that ``r = t``
is equivalent to ``m_f(t)`` for all ``t``.
2003-08-05 19:42:37 +00:00
``function_output_iterator& operator++();``
:Returns: ``*this``
``function_output_iterator& operator++(int);``
:Returns: ``*this``