UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FInstancedStructContainer::TIterator< T > Struct Template Reference

#include <InstancedStructContainer.h>

Public Types

using StructViewType = std::conditional_t< std::is_const_v< T >, FConstStructView, FStructView >
 

Public Member Functions

StructViewType operator* ()
 
TIteratoroperator++ ()
 
TIteratoroperator-- ()
 
bool operator!= (const TIterator &RHS) const
 
 operator bool () const
 
int32 GetIndex () const
 
void RemoveCurrent ()
 

Detailed Description

template<typename T>
struct FInstancedStructContainer::TIterator< T >

Iterators to enable range-based for loop support.

// Ranged for mutable container for (FStructView View : Container) {}

// Ranged for const container for (FConstStructView View : Container) {}

// Iterator based iteration, allows removing items. for (FInstancedStructContainer::FIterator It = Container.CreateIterator(); It; ++It) { It.RemoveCurrent(); }

Member Typedef Documentation

◆ StructViewType

template<typename T >
using FInstancedStructContainer::TIterator< T >::StructViewType = std::conditional_t<std::is_const_v<T>, FConstStructView, FStructView>

Member Function Documentation

◆ GetIndex()

template<typename T >
int32 FInstancedStructContainer::TIterator< T >::GetIndex ( ) const
inline
Returns
The index of the iterator.

◆ operator bool()

template<typename T >
FInstancedStructContainer::TIterator< T >::operator bool ( ) const
inlineexplicit
Returns
true of the interator points to valid item.

◆ operator!=()

template<typename T >
bool FInstancedStructContainer::TIterator< T >::operator!= ( const TIterator< T > &  RHS) const
inline
Returns
true of two iterators point to the same item.

◆ operator*()

template<typename T >
StructViewType FInstancedStructContainer::TIterator< T >::operator* ( )
inline
Returns
struct view (or const structview) to the item.

◆ operator++()

template<typename T >
TIterator & FInstancedStructContainer::TIterator< T >::operator++ ( )
inline

◆ operator--()

template<typename T >
TIterator & FInstancedStructContainer::TIterator< T >::operator-- ( )
inline

◆ RemoveCurrent()

template<typename T >
void FInstancedStructContainer::TIterator< T >::RemoveCurrent ( )
inline

Removes the item pointed by the iterator and adjust the iterator.


The documentation for this struct was generated from the following file: