cheshirekow  v0.1.0
mpblocks::clarkson93::OptDefined< T > Struct Template Reference

Template meta function evaluating whether or not a traits class specifies an optimization level. More...

#include <mpblocks/clarkson93/Triangulation.h>

Public Types

enum  { Value = sizeof(test<T>(0))==1 }
 

Static Public Member Functions

template<typename C >
static char test (decltype(C::OptLevel))
 
template<typename C >
static char * test (...)
 

Detailed Description

template<typename T>
struct mpblocks::clarkson93::OptDefined< T >

Template meta function evaluating whether or not a traits class specifies an optimization level.

Usage:

const bool ops_defined = OptDefined<SomeType>::Value;

Definition at line 51 of file Triangulation.h.

Member Enumeration Documentation

template<typename T >
anonymous enum
Enumerator
Value 

Definition at line 55 of file Triangulation.h.

Member Function Documentation

template<typename T >
template<typename C >
static char mpblocks::clarkson93::OptDefined< T >::test ( decltype(C::OptLevel)  )
static
template<typename T >
template<typename C >
static char* mpblocks::clarkson93::OptDefined< T >::test (   ...)
static

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