MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Templates::TTemplate< Template > Struct Template Reference

#include <Templates.h>

Data Structures

struct  Parameters
 
struct  Parameters< Template< Params... > >
 

Static Public Attributes

template<typename T >
static constexpr bool Match = false
 
template<typename... Params>
static constexpr bool Match< Template< Params... > > = true
 

Detailed Description

template<template< typename... > typename Template>
struct Mcro::Templates::TTemplate< Template >

Base struct containing traits of specified 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 39 of file Templates.h.

Field Documentation

◆ Match

template<template< typename... > typename Template>
template<typename T >
bool Mcro::Templates::TTemplate< Template >::Match = false
staticconstexpr

Definition at line 42 of file Templates.h.

◆ Match< Template< Params... > >

template<template< typename... > typename Template>
template<typename... Params>
bool Mcro::Templates::TTemplate< Template >::Match< Template< Params... > > = true
staticconstexpr

Definition at line 45 of file Templates.h.


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