CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Helper class to check if specific type is a specialization of a given template. More...
#include <detail.h>
Public Types | |
template<typename Tested > | |
using | type = decltype(Invoke((Tested *) nullptr)) |
If Tested is a specialization of TypeToBe , typedefs std::true_type, otherwise typedefs std::false_type. More... | |
Static Public Member Functions | |
static std::false_type | Invoke (...) |
Detects that pointee is not a template specialization. More... | |
template<typename ... P> | |
static std::true_type | Invoke (const TypeToBe< P... > *) |
Detects that pointee is a template specialization. More... | |
Helper class to check if specific type is a specialization of a given template.
TypeToBe | Template to check against. |
T | Formal arguments of template to check against. |
using System::detail::Is_A_Internal< TypeToBe >::type = decltype(Invoke((Tested*)nullptr)) |
If Tested
is a specialization of TypeToBe
, typedefs std::true_type, otherwise typedefs std::false_type.
Tested | Type to check for being TypeToBe specialization. |
|
static |
Detects that pointee is not a template specialization.
|
static |
Detects that pointee is a template specialization.
P | Template actual arguments. |