make_transform_iterator.rst 801 B

1234567891011121314151617181920212223
  1. .. Copyright David Abrahams 2006. Distributed under the Boost
  2. .. Software License, Version 1.0. (See accompanying
  3. .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. ::
  5. template <class UnaryFunction, class Iterator>
  6. transform_iterator<UnaryFunction, Iterator>
  7. make_transform_iterator(Iterator it, UnaryFunction fun);
  8. :Returns: An instance of ``transform_iterator<UnaryFunction, Iterator>`` with ``m_f``
  9. initialized to ``f`` and ``m_iterator`` initialized to ``x``.
  10. ::
  11. template <class UnaryFunction, class Iterator>
  12. transform_iterator<UnaryFunction, Iterator>
  13. make_transform_iterator(Iterator it);
  14. :Returns: An instance of ``transform_iterator<UnaryFunction, Iterator>`` with ``m_f``
  15. default constructed and ``m_iterator`` initialized to ``x``.