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)
8 // For more information, see http://www.boost.org/libs/range/
11 #ifndef BOOST_RANGE_DETAIL_SIZE_TYPE_HPP
12 #define BOOST_RANGE_DETAIL_SIZE_TYPE_HPP
14 #include <boost/range/detail/common.hpp>
16 //////////////////////////////////////////////////////////////////////////////
17 // missing partial specialization workaround.
18 //////////////////////////////////////////////////////////////////////////////
22 namespace range_detail
24 template< typename T >
25 struct range_size_type_
27 template< typename C >
30 typedef std::size_t type;
35 struct range_size_type_<std_container_>
37 template< typename C >
40 typedef BOOST_RANGE_DEDUCED_TYPENAME C::size_type type;
45 template< typename C >
48 typedef typename range_detail::range<C>::type c_type;
50 typedef typename range_detail::range_size_type_<c_type>::BOOST_NESTED_TEMPLATE pts<C>::type type;