begin_end.hpp 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef BOOST_MPL_LIST_AUX_BEGIN_END_HPP_INCLUDED
  2. #define BOOST_MPL_LIST_AUX_BEGIN_END_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/begin_end_fwd.hpp>
  14. #include <boost/mpl/list/aux_/iterator.hpp>
  15. #include <boost/mpl/list/aux_/tag.hpp>
  16. #include <boost/mpl/list/aux_/item.hpp>
  17. namespace boost { namespace mpl {
  18. template<>
  19. struct begin_impl< aux::list_tag >
  20. {
  21. template< typename List > struct apply
  22. {
  23. typedef l_iter<typename List::type> type;
  24. };
  25. };
  26. template<>
  27. struct end_impl< aux::list_tag >
  28. {
  29. template< typename > struct apply
  30. {
  31. typedef l_iter<l_end> type;
  32. };
  33. };
  34. }}
  35. #endif // BOOST_MPL_LIST_AUX_BEGIN_END_HPP_INCLUDED