range_c.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef BOOST_MPL_RANGE_C_HPP_INCLUDED
  2. #define BOOST_MPL_RANGE_C_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/integral_c.hpp>
  14. #include <boost/mpl/aux_/range_c/front.hpp>
  15. #include <boost/mpl/aux_/range_c/back.hpp>
  16. #include <boost/mpl/aux_/range_c/size.hpp>
  17. #include <boost/mpl/aux_/range_c/O1_size.hpp>
  18. #include <boost/mpl/aux_/range_c/empty.hpp>
  19. #include <boost/mpl/aux_/range_c/iterator.hpp>
  20. #include <boost/mpl/aux_/range_c/tag.hpp>
  21. namespace boost { namespace mpl {
  22. template<
  23. typename T
  24. , T Start
  25. , T Finish
  26. >
  27. struct range_c
  28. {
  29. typedef aux::half_open_range_tag tag;
  30. typedef T value_type;
  31. typedef range_c type;
  32. typedef integral_c<T,Start> start;
  33. typedef integral_c<T,Finish> finish;
  34. typedef r_iter<start> begin;
  35. typedef r_iter<finish> end;
  36. };
  37. }}
  38. #endif // BOOST_MPL_RANGE_C_HPP_INCLUDED