1 // Boost.Assign library
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)
8 // For more information, see http://www.boost.org/libs/assign/
11 #ifndef BOOST_ASSIGN_STD_SLIST_HPP
12 #define BOOST_ASSIGN_STD_SLIST_HPP
14 #include <boost/config.hpp>
15 #ifdef BOOST_HAS_SLIST
21 #include <boost/assign/list_inserter.hpp>
22 #include <boost/move/utility.hpp>
23 #ifdef BOOST_SLIST_HEADER
24 # include BOOST_SLIST_HEADER
33 #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
34 template< class V, class A, class V2 >
35 inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
36 operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2 v )
38 return push_back( c )( v );
41 template< class V, class A, class V2 >
42 inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
43 operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2&& v )
45 return push_back( c )( boost::forward<V2>(v) );
52 #endif // BOOST_HAS_SLIST