Adobe Source Libraries
1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
distance.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2013 Adobe
3
Distributed under the Boost Software License, Version 1.0.
4
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
*/
6
/**************************************************************************************************/
7
8
#ifndef ADOBE_ITERATOR_DISTANCE_HPP
9
#define ADOBE_ITERATOR_DISTANCE_HPP
10
11
#include <
adobe/config.hpp
>
12
13
#include <iterator>
14
15
#include <boost/range/difference_type.hpp>
16
17
/**************************************************************************************************/
18
19
namespace
adobe
{
20
21
/**************************************************************************************************/
22
26
27
template
<
typename
I>
// I models InputRange
28
inline
boost::difference_type<I>::type
distance
(I& range) {
29
return
std::distance(boost::begin(range), boost::end(range));
30
}
31
32
/**************************************************************************************************/
33
34
}
// namespace adobe
35
36
/**************************************************************************************************/
37
38
#endif
39
// ADOBE_ITERATOR_DISTANCE_HPP
config.hpp
adobe::distance
boost::difference_type< I >::type distance(I &range)
Definition
distance.hpp:28
adobe
Definition
class_template.hpp:7
adobe
iterator
distance.hpp
Generated by
1.14.0