make_counting_iterator.rst 414 B

123456789101112
  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 Incrementable>
  6. counting_iterator<Incrementable> make_counting_iterator(Incrementable x);
  7. :Returns: An instance of ``counting_iterator<Incrementable>``
  8. with ``current`` constructed from ``x``.