Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JConstructor< JType_t, JArgument_t > Class Template Reference

Template class test for availability of a suitable constructor JType_t(const JArgument_t). More...

#include <JConstructor.hh>

Inheritance diagram for JLANG::JConstructor< JType_t, JArgument_t >:
JLANG::JTest

Static Public Attributes

static const bool has_constructor = JTEST(test(std::declval<JArgument_t>()))
 true if JType_t can be constructed from JArgument_t; else false

 

Static Private Member Functions

static JTrue test (const JType_t &)
 
static JFalse test (...)
 default false
 

Detailed Description

template<class JType_t, class JArgument_t>
class JLANG::JConstructor< JType_t, JArgument_t >

Template class test for availability of a suitable constructor JType_t(const JArgument_t).

Definition at line 21 of file JConstructor.hh.

Member Function Documentation

◆ test() [1/2]

template<class JType_t , class JArgument_t >
static JTrue JLANG::JConstructor< JType_t, JArgument_t >::test ( const JType_t & )
staticprivate

◆ test() [2/2]

template<class JType_t , class JArgument_t >
static JFalse JLANG::JTest::test ( ...)
staticprivate

default false

Member Data Documentation

◆ has_constructor

template<class JType_t , class JArgument_t >
const bool JLANG::JConstructor< JType_t, JArgument_t >::has_constructor = JTEST(test(std::declval<JArgument_t>()))
static

true if JType_t can be constructed from JArgument_t; else false

Definition at line 29 of file JConstructor.hh.


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