UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StructOnScope.h File Reference

Go to the source code of this file.

Classes

class  FStructOnScope
 
class  TStructOnScope< T >
 

Functions

template<typename T , typename U = T, typename... TArgs>
TStructOnScope< T > MakeStructOnScope (TArgs &&... Args)
 
template<typename T >
FArchiveoperator<< (FArchive &Ar, TStructOnScope< T > &Struct)
 

Function Documentation

◆ MakeStructOnScope()

template<typename T , typename U = T, typename... TArgs>
TStructOnScope< T > MakeStructOnScope ( TArgs &&...  Args)
inline

Allocates a new struct of type U with the given arguments and returns it as a Typed StructOnScope of type T.

Parameters
ArgsThe arguments to pass to the constructor of U.
Returns
A TStructOnScope<T> which holds a struct to a newly-constructed U with the specified Args.

◆ operator<<()

template<typename T >
FArchive & operator<< ( FArchive Ar,
TStructOnScope< T > &  Struct 
)