vector0.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef BOOST_MPL_VECTOR_AUX_VECTOR0_HPP_INCLUDED
  2. #define BOOST_MPL_VECTOR_AUX_VECTOR0_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/long.hpp>
  14. #include <boost/mpl/void.hpp>
  15. #include <boost/mpl/aux_/na.hpp>
  16. #include <boost/mpl/aux_/type_wrapper.hpp>
  17. #include <boost/mpl/vector/aux_/iterator.hpp>
  18. #include <boost/mpl/vector/aux_/tag.hpp>
  19. #include <boost/mpl/aux_/config/typeof.hpp>
  20. namespace boost { namespace mpl {
  21. template< typename Dummy = na > struct vector0;
  22. template<> struct vector0<na>
  23. {
  24. #if defined(BOOST_MPL_CFG_TYPEOF_BASED_SEQUENCES)
  25. typedef aux::vector_tag tag;
  26. typedef vector0 type;
  27. typedef long_<32768> lower_bound_;
  28. typedef lower_bound_ upper_bound_;
  29. typedef long_<0> size;
  30. static aux::type_wrapper<void_> item_(...);
  31. #else
  32. typedef aux::vector_tag<0> tag;
  33. typedef vector0 type;
  34. typedef void_ item0;
  35. typedef v_iter<vector0<>,0> begin;
  36. typedef v_iter<vector0<>,0> end;
  37. #endif
  38. };
  39. }}
  40. #endif // BOOST_MPL_VECTOR_AUX_VECTOR0_HPP_INCLUDED