Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:12

0001 // Boost.Assign library
0002 //
0003 //  Copyright Thorsten Ottosen 2003-2004. Use, modification and
0004 //  distribution is subject to the Boost Software License, Version
0005 //  1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see http://www.boost.org/libs/assign/
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 // BOOST_HAS_SLIST
0053 
0054 #endif