Chris@16: // Copyright 2002 The Trustees of Indiana University. Chris@16: Chris@16: // Use, modification and distribution is subject to the Boost Software Chris@16: // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // Boost.MultiArray Library Chris@16: // Authors: Ronald Garcia Chris@16: // Jeremy Siek Chris@16: // Andrew Lumsdaine Chris@16: // See http://www.boost.org/libs/multi_array for documentation. Chris@16: Chris@16: #ifndef RANGE_LIST_RG072501_HPP Chris@16: #define RANGE_LIST_RG072501_HPP Chris@16: // Chris@16: // range_list.hpp - helper to build boost::arrays for *_set types Chris@16: // Chris@16: Chris@16: #include "boost/array.hpp" Chris@16: Chris@16: namespace boost { Chris@16: namespace detail { Chris@16: namespace multi_array { Chris@16: Chris@16: ///////////////////////////////////////////////////////////////////////// Chris@16: // choose range list begins Chris@16: // Chris@16: Chris@16: struct choose_range_list_n { Chris@16: template Chris@16: struct bind { Chris@16: typedef boost::array type; Chris@16: }; Chris@16: }; Chris@16: Chris@16: struct choose_range_list_zero { Chris@16: template Chris@16: struct bind { Chris@16: typedef boost::array type; Chris@16: }; Chris@16: }; Chris@16: Chris@16: Chris@16: template Chris@16: struct range_list_gen_helper { Chris@16: typedef choose_range_list_n choice; Chris@16: }; Chris@16: Chris@16: template <> Chris@16: struct range_list_gen_helper<0> { Chris@16: typedef choose_range_list_zero choice; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct range_list_generator { Chris@16: private: Chris@16: typedef typename range_list_gen_helper::choice Choice; Chris@16: public: Chris@16: typedef typename Choice::template bind::type type; Chris@16: }; Chris@16: Chris@16: // Chris@16: // choose range list ends Chris@16: ///////////////////////////////////////////////////////////////////////// Chris@16: Chris@16: } // namespace multi_array Chris@16: } // namespace detail Chris@16: } // namespace boost Chris@16: Chris@16: #endif // RANGE_LIST_RG072501_HPP