Line data Source code
1 : //
2 : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2012
3 : //
4 : // Copyright: See COPYING file that comes with this distribution
5 : //
6 :
7 : #ifndef VSET_VTREE_ASPECT_AD_MULTIMAP_INSERT_HPP
8 : #define VSET_VTREE_ASPECT_AD_MULTIMAP_INSERT_HPP
9 :
10 : #include <vset/vtree/aspect/tags.hpp>
11 :
12 : namespace vset{ namespace vtree{
13 :
14 29 : struct ad_multimap_insert
15 : {
16 : template<typename T, typename Itr, typename K, typename V>
17 : Itr operator()(T& t, Itr itr, const K& key, const V& value ) const
18 : {
19 : return t.get_container().insert( itr, std::make_pair(key, value) );
20 : }
21 :
22 : template<typename T, typename K, typename V>
23 : typename T::container_type::iterator
24 26345 : operator()(T& t, const K& key, const V& value ) const
25 : {
26 26345 : return t.get_container().insert( std::make_pair(key, value) );
27 : }
28 : };
29 :
30 :
31 : }}
32 :
33 : #endif
|