LCOV - code coverage report
Current view: top level - vset/buffer/inmem - ad_reserve.hpp (source / functions) Hit Total Coverage
Test: v-set-coverage.info Lines: 4 4 100.0 %
Date: 2019-09-12 Functions: 3 3 100.0 %

          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_VSET_BUFFER_INMEM_AD_RESERVE_HPP
       8             : #define VSET_VSET_BUFFER_INMEM_AD_RESERVE_HPP
       9             : 
      10             : #include <vset/buffer/tags.hpp>
      11             : #include <vset/buffer/inmem/tags.hpp>
      12             : 
      13             : namespace vset { namespace buffer { namespace inmem{
      14             : 
      15          24 : struct ad_reserve
      16             : {
      17             :   template<typename T>
      18           3 :   void operator()( T& t, typename T::aspect::template advice_cast<_size_type_>::type size )
      19             :   {
      20           3 :     t.get_aspect().template get<_container_>().reserve(size);
      21           3 :   }
      22             : };
      23             : 
      24             : }}}
      25             : 
      26             : #endif

Generated by: LCOV version 1.10