Sha256: 90dec33c957d6b804815d5179377baf0a8fcf8ae234135155be0275c5faf7bf4

Contents?: true

Size: 1.69 KB

Versions: 35

Compression:

Stored size: 1.69 KB

Contents

// Boost.Range library
//
//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
//  distribution is subject to the Boost Software License, Version
//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//
// For more information, see http://www.boost.org/libs/range/
//

#ifndef BOOST_RANGE_CONST_ITERATOR_HPP
#define BOOST_RANGE_CONST_ITERATOR_HPP

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif

#include <boost/range/config.hpp>

#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
#include <boost/range/detail/const_iterator.hpp>
#else

#include <boost/type_traits/remove_const.hpp>
#include <cstddef>
#include <utility>

namespace boost
{
    //////////////////////////////////////////////////////////////////////////
    // default
    //////////////////////////////////////////////////////////////////////////
    
    template< typename C >
    struct range_const_iterator
    {
        typedef BOOST_DEDUCED_TYPENAME C::const_iterator type;
    };
    
    //////////////////////////////////////////////////////////////////////////
    // pair
    //////////////////////////////////////////////////////////////////////////

    template< typename Iterator >
    struct range_const_iterator< std::pair<Iterator,Iterator> >
    {
        typedef Iterator type;
    };
    
    //////////////////////////////////////////////////////////////////////////
    // array
    //////////////////////////////////////////////////////////////////////////

    template< typename T, std::size_t sz >
    struct range_const_iterator< T[sz] >
    {
        typedef const T* type;
    };

} // namespace boost

#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION

#endif

Version data entries

35 entries across 35 versions & 5 rubygems

Version Path
rockdog-passenger-0.0.1 ext/boost/range/const_iterator.hpp
vanity-1.7.1 vendor/ruby/1.9.1/gems/passenger-2.2.15/ext/boost/range/const_iterator.hpp
passenger-3.0.0 ext/boost/range/const_iterator.hpp
passenger-3.0.0.pre4 ext/boost/range/const_iterator.hpp
passenger-3.0.0.pre3 ext/boost/range/const_iterator.hpp
passenger-3.0.0.pre2 ext/boost/range/const_iterator.hpp
passenger-3.0.0.pre1 ext/boost/range/const_iterator.hpp
passenger-2.2.15 ext/boost/range/const_iterator.hpp
passenger-2.2.14 ext/boost/range/const_iterator.hpp
passenger-2.2.13 ext/boost/range/const_iterator.hpp
passenger-2.2.12 ext/boost/range/const_iterator.hpp
colouringcode-passenger-0.2 ext/boost/range/const_iterator.hpp
passenger-2.2.11 ext/boost/range/const_iterator.hpp
passenger-jmazzi-2.2.10 ext/boost/range/const_iterator.hpp
passenger-2.2.10 ext/boost/range/const_iterator.hpp
passenger-jmazzi-2.2.9 ext/boost/range/const_iterator.hpp
passenger-2.2.9 ext/boost/range/const_iterator.hpp
passenger-2.2.8 ext/boost/range/const_iterator.hpp
colouringcode-passenger-0.1 ext/boost/range/const_iterator.hpp
passenger-2.2.7 ext/boost/range/const_iterator.hpp