source: NonGTP/Boost/boost/assign/std/slist.hpp @ 857

Revision 857, 997 bytes checked in by igarcia, 18 years ago (diff)
Line 
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
11#ifndef BOOST_ASSIGN_STD_SLIST_HPP
12#define BOOST_ASSIGN_STD_SLIST_HPP
13
14#include <boost/config.hpp>
15#ifdef BOOST_HAS_SLIST
16
17#if defined(_MSC_VER) && (_MSC_VER >= 1020)
18# pragma once
19#endif
20
21#include <boost/assign/list_inserter.hpp>
22#include <boost/config.hpp>
23#include <slist>
24
25namespace boost
26{
27namespace assign
28{
29
30    template< class V, class A, class V2 >
31    inline list_inserter< assign_detail::call_push_back< BOOST_STD_EXTENSION_NAMESPACE::slist<V,A> >, V >
32    operator+=( BOOST_STD_EXTENSION_NAMESPACE::slist<V,A>& c, V2 v )
33    {
34        return push_back( c )( v );
35    }
36   
37}
38}
39
40#endif // BOOST_HAS_SLIST
41
42#endif
Note: See TracBrowser for help on using the repository browser.