UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GSLNotNull.h File Reference
#include "CoreTypes.h"
#include "Misc/OptionalFwd.h"
#include "Templates/UnrealTemplate.h"
#include <gsl/pointers>

Go to the source code of this file.

Functions

template<typename ObjectType >
ObjectType * GetRawPointerOrNull (const TOptional< gsl::not_null< ObjectType * > > &Optional)
 
template<typename ObjectType >
ObjectType * GetRawPointerOrNull (const TOptional< gsl::strict_not_null< ObjectType * > > &Optional)
 
template<typename ObjectType >
FArchiveoperator<< (FArchive &Ar, gsl::not_null< ObjectType > &NotNull)
 
template<typename ObjectType >
FArchiveoperator<< (FArchive &Ar, gsl::strict_not_null< ObjectType > &NotNull)
 
template<typename ObjectType >
auto GetTypeHash (const gsl::not_null< ObjectType > &NotNull) -> decltype(GetTypeHash(*NotNull))
 
template<typename ObjectType >
auto GetTypeHash (const gsl::strict_not_null< ObjectType > &NotNull) -> decltype(GetTypeHash(*NotNull))
 

Function Documentation

◆ GetRawPointerOrNull() [1/2]

template<typename ObjectType >
ObjectType * GetRawPointerOrNull ( const TOptional< gsl::not_null< ObjectType * > > &  Optional)
inline

Utility function to turn an TOptional<gsl::not_null<T>> back into a nullable T.

◆ GetRawPointerOrNull() [2/2]

template<typename ObjectType >
ObjectType * GetRawPointerOrNull ( const TOptional< gsl::strict_not_null< ObjectType * > > &  Optional)
inline

Utility function to turn an TOptional<gsl::strict_not_null<T>> back into a nullable T.

◆ GetTypeHash() [1/2]

template<typename ObjectType >
auto GetTypeHash ( const gsl::not_null< ObjectType > &  NotNull) -> decltype(GetTypeHash(*NotNull))
inline

Utility function to hash a gsl::not_null<T>.

◆ GetTypeHash() [2/2]

template<typename ObjectType >
auto GetTypeHash ( const gsl::strict_not_null< ObjectType > &  NotNull) -> decltype(GetTypeHash(*NotNull))
inline

Utility function to hash a gsl::strict_not_null<T>.

◆ operator<<() [1/2]

template<typename ObjectType >
FArchive & operator<< ( FArchive Ar,
gsl::not_null< ObjectType > &  NotNull 
)

Utility function to serialize a `gslnot_null<T>.

◆ operator<<() [2/2]

template<typename ObjectType >
FArchive & operator<< ( FArchive Ar,
gsl::strict_not_null< ObjectType > &  NotNull 
)

Utility function to serialize a gsl::strict_not_null<T>.