item.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef BOOST_MPL_LIST_AUX_NODE_HPP_INCLUDED
  2. #define BOOST_MPL_LIST_AUX_NODE_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/list/aux_/tag.hpp>
  15. #include <boost/mpl/aux_/config/msvc.hpp>
  16. #include <boost/mpl/aux_/config/workaround.hpp>
  17. namespace boost { namespace mpl {
  18. template<
  19. typename Size
  20. , typename T
  21. , typename Next
  22. >
  23. struct l_item
  24. {
  25. // agurt, 17/jul/03: to facilitate the deficient 'is_sequence' implementation
  26. #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
  27. typedef int begin;
  28. #endif
  29. typedef aux::list_tag tag;
  30. typedef l_item type;
  31. typedef Size size;
  32. typedef T item;
  33. typedef Next next;
  34. };
  35. struct l_end
  36. {
  37. #if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
  38. typedef int begin;
  39. #endif
  40. typedef aux::list_tag tag;
  41. typedef l_end type;
  42. typedef long_<0> size;
  43. };
  44. }}
  45. #endif // BOOST_MPL_LIST_AUX_NODE_HPP_INCLUDED