MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Templates::CIsTemplate Concept Reference

Check if given type is an instantiation of a given template (which only accepts type parameters) More...

#include <Templates.h>

Concept definition

template<typename Instance, template< typename... > typename Template>
concept Mcro::Templates::CIsTemplate = TTemplate<Template>::template Match<std::decay_t<Instance>>
Check if given type is an instantiation of a given template (which only accepts type parameters)
Definition Templates.h:239

Detailed Description

Check if given type is an instantiation of a given template (which only accepts type parameters)

Warning
Until this proposal https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1985r0.pdf or equivalent is considered seriously, template traits only work with templates which only have type-parameters. Non-type parameters even when a default is specified for them will result in compile error.

Definition at line 239 of file Templates.h.