1 // Boost.Assign library
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)
8 // For more information, see http://www.boost.org/libs/assign/
12 #ifndef BOOST_ASSIGN_STD_MAP_HPP
13 #define BOOST_ASSIGN_STD_MAP_HPP
15 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
19 #include <boost/assign/list_inserter.hpp>
20 #include <boost/config.hpp>
28 template< class K, class V, class C, class A, class P >
29 inline list_inserter< assign_detail::call_insert< std::map<K,V,C,A> >, P >
30 operator+=( std::map<K,V,C,A>& m, const P& p )
32 return insert( m )( p );
35 template< class K, class V, class C, class A, class P >
36 inline list_inserter< assign_detail::call_insert< std::multimap<K,V,C,A> >, P >
37 operator+=( std::multimap<K,V,C,A>& m, const P& p )
39 return insert( m )( p );