File indexing completed on 2025-01-18 09:29:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_ASSIGN_STD_SLIST_HPP
0012 #define BOOST_ASSIGN_STD_SLIST_HPP
0013
0014 #include <boost/config.hpp>
0015 #ifdef BOOST_HAS_SLIST
0016
0017 #if defined(_MSC_VER)
0018 # pragma once
0019 #endif
0020
0021 #include <boost/assign/list_inserter.hpp>
0022 #include <boost/move/utility.hpp>
0023 #ifdef BOOST_SLIST_HEADER
0024 # include BOOST_SLIST_HEADER
0025 #else
0026 # include <slist>
0027 #endif
0028
0029 namespace boost
0030 {
0031 namespace assign
0032 {
0033 #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
0034 template< class V, class A, class V2 >
0035 inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
0036 operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2 v )
0037 {
0038 return push_back( c )( v );
0039 }
0040 #else
0041 template< class V, class A, class V2 >
0042 inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
0043 operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2&& v )
0044 {
0045 return push_back( c )( boost::forward<V2>(v) );
0046 }
0047
0048 #endif
0049 }
0050 }
0051
0052 #endif
0053
0054 #endif