f

Wraps a type.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/TypeWrapper.h

Include

#include "Templates/TypeWrapper.h"

Syntax

*void f
(
    int t
)

Remarks

Wraps a type.

The intended use of this template is to allow types to be passed around where the unwrapped type would give different behavior. An example of this is when you want a template specialization to refer to the primary template, but doing that would cause infinite recursion through the specialization, e.g.:

// Before template =""> struct TThing { void f(T t) { DoSomething(t); } };

template <> struct TThing { /**

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss