5#if (defined(__AUTORTFM) && __AUTORTFM)
32template<
typename T,
size_t InlineCapacity, EContainerVal
idation Val
idation = EContainerVal
idation::Enabled>
36 using ElementType = T;
50 MoveFrom(std::move(
Other));
77 MoveFrom(std::move(
Other));
97 if (Data != InlineData())
102 Capacity = InlineCapacity;
106 inline void Push(
const T& Item)
108 if (
Count >= Capacity)
110 Reserve(Capacity * 2);
124 Reserve(std::max<size_t>(
NewCount, Capacity * 2));
127 if constexpr (std::is_trivial_v<T>)
133 for (
size_t I = 0, N =
Other.Count; I < N; I++)
140 Other.SetToInitialState();
159 if constexpr (std::is_trivial_v<T>)
161 if (Data == InlineData())
163 T* NewData =
reinterpret_cast<T*
>(AutoRTFM::Allocate(
NewCapacity *
sizeof(T),
alignof(T)));
169 Data =
reinterpret_cast<T*
>(AutoRTFM::Reallocate(Data,
NewCapacity *
sizeof(T),
alignof(T)));
174 T* NewData =
reinterpret_cast<T*
>(AutoRTFM::Allocate(
NewCapacity *
sizeof(T),
alignof(T)));
175 for (
size_t I = 0, N =
Count; I < N; I++)
177 new (NewData + I) T(std::move(Data[I]));
180 if (Data != InlineData())
182 AutoRTFM::Free(Data);
190 inline size_t Num()
const {
return Count; }
194 T& operator[](
size_t Index)
200 const T& operator[](
size_t Index)
const
212 const T&
Front()
const
224 const T&
Back()
const
241 Reserve(
Other.Count);
242 if constexpr (std::is_trivial_v<T>)
248 for (
size_t I = 0, N =
Other.Count; I < N; I++)
263 if constexpr (std::is_trivial_v<T>)
269 for (
size_t I = 0, N =
Other.Count; I < N; I++)
271 new (
Data + I) T(std::move(
Other.Data[I]));
280 Capacity =
Other.Capacity;
283 Other.SetToInitialState();
291 Capacity = InlineCapacity;
296 const T* InlineData()
const {
return reinterpret_cast<const T*
>(
InlineDataBuffer); }
300 size_t Capacity = InlineCapacity;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
memcpy(InputBufferBase, BinkBlocksData, BinkBlocksSize)
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15
FORCEINLINE FStridedReferenceIterator begin(FStridedReferenceView View)
Definition FastReferenceCollector.h:490
FORCEINLINE FStridedReferenceIterator end(FStridedReferenceView View)
Definition FastReferenceCollector.h:491
U16 Index
Definition radfft.cpp:71