~ubuntu-branches/ubuntu/breezy/aqsis/breezy

« back to all changes in this revision

Viewing changes to boost/boost/mpl/aux_/iter_distance.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Will Newton
  • Date: 2004-12-07 20:06:49 UTC
  • Revision ID: james.westby@ubuntu.com-20041207200649-fccswkrvp4oc8lmn
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------------------
 
2
// boost mpl/aux_/iter_distance.hpp header file
 
3
// See http://www.boost.org for updates, documentation, and revision history.
 
4
//-----------------------------------------------------------------------------
 
5
//
 
6
// Copyright (c) 2002
 
7
// Aleksey Gurtovoy
 
8
//
 
9
// Permission to use, copy, modify, distribute and sell this software
 
10
// and its documentation for any purpose is hereby granted without fee, 
 
11
// provided that the above copyright notice appears in all copies and 
 
12
// that both the copyright notice and this permission notice appear in 
 
13
// supporting documentation. No representations are made about the 
 
14
// suitability of this software for any purpose. It is provided "as is" 
 
15
// without express or implied warranty.
 
16
 
 
17
#ifndef BOOST_MPL_AUX_ITER_DISTANCE_HPP_INCLUDED
 
18
#define BOOST_MPL_AUX_ITER_DISTANCE_HPP_INCLUDED
 
19
 
 
20
#include "boost/mpl/aux_/iterator_names.hpp"
 
21
#include "boost/mpl/aux_/msvc_never_true.hpp"
 
22
#include "boost/config.hpp"
 
23
 
 
24
namespace boost {
 
25
namespace mpl {
 
26
namespace aux {
 
27
 
 
28
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
 
29
 
 
30
// msvc_distance
 
31
#define BOOST_MPL_AUX_MSVC_DTW_NAME msvc_distance
 
32
#define BOOST_MPL_AUX_MSVC_DTW_ORIGINAL_NAME BOOST_MPL_AUX_ITERATOR_DISTANCE
 
33
#define BOOST_MPL_AUX_MSVC_DTW_ARITY 1
 
34
#include "boost/mpl/aux_/msvc_dtw.hpp"
 
35
 
 
36
template<
 
37
      typename Iterator
 
38
    , typename Other
 
39
    > 
 
40
struct iter_distance
 
41
    : msvc_distance<Iterator>::template result_<Other>
 
42
{
 
43
};
 
44
 
 
45
#else
 
46
 
 
47
template<
 
48
      typename Iterator
 
49
    , typename Other
 
50
    > 
 
51
struct iter_distance
 
52
    : Iterator::template BOOST_MPL_AUX_ITERATOR_DISTANCE<Other>
 
53
{
 
54
};
 
55
 
 
56
#endif
 
57
 
 
58
} // namespace aux
 
59
} // namespace mpl
 
60
} // namespace boost
 
61
 
 
62
#endif // BOOST_MPL_AUX_ITER_DISTANCE_HPP_INCLUDED