LCOV - code coverage report
Current view: top level - vset/vtree/aspect - ad_multimap_insert.hpp (source / functions) Hit Total Coverage
Test: v-set-coverage.info Lines: 3 3 100.0 %
Date: 2019-09-12 Functions: 13 14 92.9 %

          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

Generated by: LCOV version 1.10