slist.hpp 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Boost.Assign library
  2. //
  3. // Copyright Thorsten Ottosen 2003-2004. Use, modification and
  4. // distribution is subject to the Boost Software License, Version
  5. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // For more information, see http://www.boost.org/libs/assign/
  9. //
  10. #ifndef BOOST_ASSIGN_STD_SLIST_HPP
  11. #define BOOST_ASSIGN_STD_SLIST_HPP
  12. #include <boost/config.hpp>
  13. #ifdef BOOST_HAS_SLIST
  14. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  15. # pragma once
  16. #endif
  17. #include <boost/assign/list_inserter.hpp>
  18. #ifdef BOOST_SLIST_HEADER
  19. # include BOOST_SLIST_HEADER
  20. #else
  21. # include <slist>
  22. #endif
  23. namespace boost
  24. {
  25. namespace assign
  26. {
  27. template< class V, class A, class V2 >
  28. inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
  29. operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2 v )
  30. {
  31. return push_back( c )( v );
  32. }
  33. }
  34. }
  35. #endif // BOOST_HAS_SLIST
  36. #endif