sl@0
|
1 |
// Boost.Assign library
|
sl@0
|
2 |
//
|
sl@0
|
3 |
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
|
sl@0
|
4 |
// distribution is subject to the Boost Software License, Version
|
sl@0
|
5 |
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
6 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// For more information, see http://www.boost.org/libs/assign/
|
sl@0
|
9 |
//
|
sl@0
|
10 |
|
sl@0
|
11 |
|
sl@0
|
12 |
#ifndef BOOST_ASSIGN_STD_SET_HPP
|
sl@0
|
13 |
#define BOOST_ASSIGN_STD_SET_HPP
|
sl@0
|
14 |
|
sl@0
|
15 |
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
sl@0
|
16 |
# pragma once
|
sl@0
|
17 |
#endif
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <boost/assign/list_inserter.hpp>
|
sl@0
|
20 |
#include <boost/config.hpp>
|
sl@0
|
21 |
#include <set>
|
sl@0
|
22 |
|
sl@0
|
23 |
namespace boost
|
sl@0
|
24 |
{
|
sl@0
|
25 |
namespace assign
|
sl@0
|
26 |
{
|
sl@0
|
27 |
template< class K, class C, class A, class K2 >
|
sl@0
|
28 |
inline list_inserter< assign_detail::call_insert< std::set<K,C,A> >, K >
|
sl@0
|
29 |
operator+=( std::set<K,C,A>& c, K2 k )
|
sl@0
|
30 |
{
|
sl@0
|
31 |
return insert( c )( k );
|
sl@0
|
32 |
}
|
sl@0
|
33 |
|
sl@0
|
34 |
template< class K, class C, class A, class K2 >
|
sl@0
|
35 |
inline list_inserter< assign_detail::call_insert< std::multiset<K,C,A> >, K >
|
sl@0
|
36 |
operator+=( std::multiset<K,C,A>& c, K2 k )
|
sl@0
|
37 |
{
|
sl@0
|
38 |
return insert( c )( k );
|
sl@0
|
39 |
}
|
sl@0
|
40 |
|
sl@0
|
41 |
}
|
sl@0
|
42 |
}
|
sl@0
|
43 |
|
sl@0
|
44 |
#endif
|