AsConst

Returns a non-const pointer type as const.

Windows
MacOS
Linux

Deprecated

  • Call with a reference instead of a pointer.

References

Module

Core

Header

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

Include

#include "Templates/UnrealTemplate.h"

Syntax

template<typename T>
constexpr const T * AsConst
(
    T *const && Ptr
)

Remarks

Returns a non-const pointer type as const.

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