Public Types | Public Member Functions | Static Public Attributes | List of all members
ecl::Bool< x > Class Template Reference

Integral constant wrapper for boolean values. More...

#include <bool.hpp>

Public Types

typedef Bool< x > type
 This wrapper's nullary metafunction (simply returns itself). More...
 
typedef bool value_type
 The type this wrapper's value. More...
 

Public Member Functions

virtual ~Bool ()
 

Static Public Attributes

static const bool value = x
 The value for this integral constant wrapper. More...
 

Detailed Description

template<bool x>
class ecl::Bool< x >

Integral constant wrapper for boolean values.

Provides an integral constant wrapper for boolean values (refer to C++ template metaprogramming by D.Abrahams p. 61 for details).

Definition at line 36 of file bool.hpp.

Member Typedef Documentation

◆ type

template<bool x>
typedef Bool<x> ecl::Bool< x >::type

This wrapper's nullary metafunction (simply returns itself).

Definition at line 45 of file bool.hpp.

◆ value_type

template<bool x>
typedef bool ecl::Bool< x >::value_type

The type this wrapper's value.

Definition at line 46 of file bool.hpp.

Constructor & Destructor Documentation

◆ ~Bool()

template<bool x>
virtual ecl::Bool< x >::~Bool ( )
inlinevirtual

Definition at line 48 of file bool.hpp.

Member Data Documentation

◆ value

template<bool x>
const bool ecl::Bool< x >::value = x
static

The value for this integral constant wrapper.

Definition at line 44 of file bool.hpp.


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


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:05