3 #ifndef __CDS_ALGO_ELIMINATION_OPT_H
4 #define __CDS_ALGO_ELIMINATION_OPT_H
6 #include <cds/details/defs.h>
8 namespace cds { namespace opt {
10 /// Enable \ref cds_elimination_description "elimination back-off" for the container
11 template <bool Enable>
12 struct enable_elimination {
14 template <class Base> struct pack: public Base
16 static CDS_CONSTEXPR const bool enable_elimination = Enable;
21 /// \ref cds_elimination_description "Elimination back-off strategy" option setter
23 Back-off strategy for elimination.
24 Usually, elimination back-off strategy is \p cds::backoff::delay.
26 template <typename Type>
27 struct elimination_backoff {
29 template <class Base> struct pack: public Base
31 typedef Type elimination_backoff;
35 }} // namespace cds::opt
37 #endif // #ifndef __CDS_ALGO_ELIMINATION_OPT_H