]>
Commit | Line | Data |
---|---|---|
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 | :: | |
6 | ||
7 | template <class UnaryFunction, class Iterator> | |
8 | transform_iterator<UnaryFunction, Iterator> | |
9 | make_transform_iterator(Iterator it, UnaryFunction fun); | |
10 | ||
11 | :Returns: An instance of ``transform_iterator<UnaryFunction, Iterator>`` with ``m_f`` | |
12 | initialized to ``f`` and ``m_iterator`` initialized to ``x``. | |
13 | ||
14 | ||
15 | ||
16 | :: | |
17 | ||
18 | template <class UnaryFunction, class Iterator> | |
19 | transform_iterator<UnaryFunction, Iterator> | |
20 | make_transform_iterator(Iterator it); | |
21 | ||
22 | :Returns: An instance of ``transform_iterator<UnaryFunction, Iterator>`` with ``m_f`` | |
23 | default constructed and ``m_iterator`` initialized to ``x``. |