os/ossrv/ossrv_pub/boost_apis/boost/assign/std/map.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
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_MAP_HPP
sl@0
    13
#define BOOST_ASSIGN_STD_MAP_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 <map>
sl@0
    22
sl@0
    23
namespace boost
sl@0
    24
{
sl@0
    25
namespace assign
sl@0
    26
{
sl@0
    27
sl@0
    28
    template< class K, class V, class C, class A, class P >
sl@0
    29
    inline list_inserter< assign_detail::call_insert< std::map<K,V,C,A> >, P >
sl@0
    30
    operator+=( std::map<K,V,C,A>& m, const P& p )
sl@0
    31
    {
sl@0
    32
        return insert( m )( p );
sl@0
    33
    }
sl@0
    34
    
sl@0
    35
    template< class K, class V, class C, class A, class P >
sl@0
    36
    inline list_inserter< assign_detail::call_insert< std::multimap<K,V,C,A> >, P >
sl@0
    37
    operator+=( std::multimap<K,V,C,A>& m, const P& p )
sl@0
    38
    {
sl@0
    39
        return insert( m )( p );
sl@0
    40
    }
sl@0
    41
sl@0
    42
}
sl@0
    43
}
sl@0
    44
sl@0
    45
#endif