add stddef.h to cds/details/defs.h
[libcds.git] / cds / details / static_functor.h
1 //$$CDS-header$$
2
3 #ifndef __CDS_DETAILS_STATIC_FUNCTOR_H
4 #define __CDS_DETAILS_STATIC_FUNCTOR_H
5
6 //@cond
7 namespace cds { namespace details {
8
9     template <class Functor, typename T>
10     struct static_functor
11     {
12         static void call( T * p )
13         {
14             Functor()( p );
15         }
16     };
17
18 }} // namespace cds::details
19 //@endcond
20
21 #endif // #ifndef __CDS_DETAILS_STATIC_FUNCTOR_H