Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/boost/range/result_iterator.hpp @ 28

Last change on this file since 28 was 12, checked in by landauf, 17 years ago

added boost

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1// Boost.Range library
2//
3//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
4//  distribution is subject to the Boost Software License, Version
5//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
6//  http://www.boost.org/LICENSE_1_0.txt)
7//
8// For more information, see http://www.boost.org/libs/range/
9//
10
11#ifndef BOOST_RANGE_RESULT_ITERATOR_HPP
12#define BOOST_RANGE_RESULT_ITERATOR_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1020)
15# pragma once
16#endif
17
18#include <boost/range/config.hpp>
19#include <boost/range/iterator.hpp>
20#include <boost/range/const_iterator.hpp>
21#include <boost/type_traits/is_const.hpp>
22#include <boost/mpl/if.hpp>
23
24namespace boost
25{
26    //////////////////////////////////////////////////////////////////////////
27    // default
28    //////////////////////////////////////////////////////////////////////////
29   
30    template< typename C >
31    struct range_result_iterator
32    {
33        typedef BOOST_RANGE_DEDUCED_TYPENAME
34            mpl::if_< BOOST_DEDUCED_TYPENAME is_const<C>::type, 
35                      BOOST_DEDUCED_TYPENAME range_const_iterator<C>::type,
36                      BOOST_DEDUCED_TYPENAME range_iterator<C>::type >::type type;
37    };
38   
39} // namespace boost
40
41//#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
42
43#endif
Note: See TracBrowser for help on using the repository browser.