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

 operator bool () const
 Convenience conversion. More...
 
virtual ~Bool ()
 

Static Public Attributes

static bool const 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 32 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 35 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 36 of file bool.hpp.

Constructor & Destructor Documentation

◆ ~Bool()

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

Definition at line 38 of file bool.hpp.

Member Function Documentation

◆ operator bool()

template<bool x>
ecl::Bool< x >::operator bool ( ) const
inline

Convenience conversion.

Definition at line 37 of file bool.hpp.

Member Data Documentation

◆ value

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

The value for this integral constant wrapper.

Definition at line 34 of file bool.hpp.


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


ecl_mpl
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:28