UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsTObjectPtr.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5template <typename T>
6struct TObjectPtr;
7
8template <typename T> constexpr bool TIsTObjectPtr_V = false;
9template <typename T> constexpr bool TIsTObjectPtr_V< TObjectPtr<T>> = true;
10template <typename T> constexpr bool TIsTObjectPtr_V<const TObjectPtr<T>> = true;
11template <typename T> constexpr bool TIsTObjectPtr_V< volatile TObjectPtr<T>> = true;
12template <typename T> constexpr bool TIsTObjectPtr_V<const volatile TObjectPtr<T>> = true;
13
14template <typename T>
16{
17 static constexpr bool Value = TIsTObjectPtr_V<T>;
18};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr bool TIsTObjectPtr_V
Definition IsTObjectPtr.h:8
Definition IsTObjectPtr.h:16
static constexpr bool Value
Definition IsTObjectPtr.h:17
Definition ObjectPtr.h:488