MADNESS  0.10.1
Public Types | List of all members
madness::detail::function_enabler_helper< B, returnT > Struct Template Reference

Behave like a lazy std::enable_if. More...

#include <world_task_queue.h>

Public Types

typedef returnT::type type
 

Detailed Description

template<bool B, class returnT>
struct madness::detail::function_enabler_helper< B, returnT >

Behave like a lazy std::enable_if.

Evaluates to returnT if B is true, otherwise to an invalid type expression which causes the template expression in which it is used to not be considered for overload resolution. This "lazy" version is used if T is only valid when B is true. Note: typename T::type is the return type and must be well formed.

Template Parameters
BThe bool value.
returnTThe type.

Member Typedef Documentation

◆ type

template<bool B, class returnT >
typedef returnT::type madness::detail::function_enabler_helper< B, returnT >::type

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