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_PERSISTENT_FILE_AD_BASIC_INIT_HPP
8 : #define VSET_VSET_BUFFER_PERSISTENT_FILE_AD_BASIC_INIT_HPP
9 :
10 : #include <vset/buffer/tags.hpp>
11 : #include <vset/buffer/persistent/tags.hpp>
12 :
13 : namespace vset { namespace buffer { namespace persistent{ namespace file{
14 :
15 12 : struct ad_basic_init
16 : {
17 : template<typename T>
18 : void operator()( T& t )
19 : {
20 : t.get_aspect().template get<_descriptor_>() = -1;
21 : }
22 : };
23 :
24 : }}}}
25 :
26 : #endif
|