cds  2.3.2
cds::opt::value< Option > Struct Template Reference

Metafunction to select option value. More...

#include <cds/opt/options.h>

Inheritance diagram for cds::opt::value< Option >:

Detailed Description

template<typename Option>
struct cds::opt::value< Option >

Metafunction to select option value.

This metafunction is intended for extracting the value of the Option option. For example,

#include <cds/opt/options.h>
#include <type_traits> // only for testing purpose (static_assert)
struct tag_a;
// Define option
typedef cds::opt::tag< tag_a > tag_option;
// What is the value of the tag_option?
// How we can extract tag_a from tag_option?
// Here is a solution:
typedef cds::opt::value< tag_option >::tag tag_option_value;
// tag_option_value is the same as tag_a
static_assert( std::is_same< tag_option_value, tag_a >::value, "Error: tag_option_value != tag_a" );

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