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

Give the opportunity to customize object lifespan operations for FAny by either specializing this template or just providing functors in-place. More...

#include <Any.h>

Data Fields

TFunction< void(T *)> Destruct {[](T* object) { delete object; }}
 
TFunction< T *(T const &)> CopyConstruct
 

Detailed Description

template<typename T>
struct Mcro::Any::TAnyTypeFacilities< T >

Give the opportunity to customize object lifespan operations for FAny by either specializing this template or just providing functors in-place.

Template Parameters
TThe type being set for an FAny

Definition at line 41 of file Any.h.

Field Documentation

◆ CopyConstruct

template<typename T >
TFunction<T*(T const&)> Mcro::Any::TAnyTypeFacilities< T >::CopyConstruct
Initial value:
{[](T const& object)
{
if constexpr (CCopyConstructible<T>) return new T(object);
else return nullptr;
}}

Definition at line 44 of file Any.h.

◆ Destruct

template<typename T >
TFunction<void(T*)> Mcro::Any::TAnyTypeFacilities< T >::Destruct {[](T* object) { delete object; }}

Definition at line 43 of file Any.h.


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