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

Revision 857, 1.1 KB 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
12#ifndef BOOST_ASSIGN_STD_SET_HPP
13#define BOOST_ASSIGN_STD_SET_HPP
14
15#if defined(_MSC_VER) && (_MSC_VER >= 1020)
16# pragma once
17#endif
18
19#include <boost/assign/list_inserter.hpp>
20#include <boost/config.hpp>
21#include <set>
22
23namespace boost
24{
25namespace assign
26{
27    template< class K, class C, class A, class K2 >
28    inline list_inserter< assign_detail::call_insert< std::set<K,C,A> >, K >
29    operator+=( std::set<K,C,A>& c, K2 k )
30    {
31        return insert( c )( k );
32    }
33   
34    template< class K, class C, class A, class K2 >
35    inline list_inserter< assign_detail::call_insert< std::multiset<K,C,A> >, K >
36    operator+=( std::multiset<K,C,A>& c, K2 k )
37    {
38        return insert( c )( k );
39    }
40   
41}
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.