UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ObjectPtrLinkedListBuilder.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "UObject/ObjectPtr.h"
7
8template<typename InElementType>
10{
12
14 {
15 return &(Element.Next);
16 }
17};
18
24template<typename InElementType, typename InLinkAccessor = TObjectPtrLinkedListBuilderNextLink<InElementType>>
25struct TObjectPtrLinkedListBuilder : public TLinkedListBuilderBase<InElementType, TObjectPtr<InElementType>, InLinkAccessor>
26{
30 using Super::Super;
31
33
34 // Allow construction from raw ptr because call sites were handling the type mismatch between
35 // the head and next ptrs in lists by converting the TObjectPtr to a raw ptr with MutableView.
40};
#define UE_FORCEINLINE_HINT
Definition Platform.h:723
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition LinkedListBuilder.h:35
InPointerType PointerType
Definition LinkedListBuilder.h:38
InElementType ElementType
Definition LinkedListBuilder.h:37
Definition ObjectPtrLinkedListBuilder.h:26
Super::PointerType PointerType
Definition ObjectPtrLinkedListBuilder.h:29
UE_NONCOPYABLE(TObjectPtrLinkedListBuilder)
Super::ElementType ElementType
Definition ObjectPtrLinkedListBuilder.h:28
TObjectPtrLinkedListBuilder(ElementType **ListStartPtr)
Definition ObjectPtrLinkedListBuilder.h:36