cds  2.3.2
cds::opt::select_default< Option, Default, Value > Struct Template Reference

Metafunction for selecting default option value. More...

#include <cds/opt/options.h>

Public Types

typedef Value type
 metafunction result
 

Detailed Description

template<typename Option, typename Default, typename Value = Option>
struct cds::opt::select_default< Option, Default, Value >

Metafunction for selecting default option value.

Template parameters:

  • Option - option value
  • Default - default option value
  • Value - option value if Option is not opt::none

If Option is opt::none, the metafunction result is Default, otherwise the result is Value.

Examples:

// default_spin is cds::sync::spin
// spin_32bit is cds::sync::reentrant_spin32

The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:51 by Doxygen 1.8.13