fix(containers): fix circular include references
This commit is contained in:
parent
1d101ce034
commit
66dc21310f
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
#include "CoreTypes.h"
|
#include "CoreTypes.h"
|
||||||
#include "Memory/Allocator.h"
|
#include "Memory/Allocator.h"
|
||||||
|
#include "Containers/Array.h"
|
||||||
#include "Templates/Utility.h"
|
#include "Templates/Utility.h"
|
||||||
#include "Templates/TypeHash.h"
|
#include "Templates/TypeHash.h"
|
||||||
#include "Templates/Container.h"
|
#include "Templates/Container.h"
|
||||||
#include "Containers/Iterator.h"
|
#include "Containers/Iterator.h"
|
||||||
|
#include "Containers/StaticArray.h"
|
||||||
#include "TypeTraits/TypeTraits.h"
|
#include "TypeTraits/TypeTraits.h"
|
||||||
#include "Miscellaneous/Compare.h"
|
#include "Miscellaneous/Compare.h"
|
||||||
#include "Memory/ObserverPointer.h"
|
#include "Memory/ObserverPointer.h"
|
||||||
@ -15,12 +17,6 @@ NAMESPACE_REDCRAFT_BEGIN
|
|||||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||||
NAMESPACE_MODULE_BEGIN(Utility)
|
NAMESPACE_MODULE_BEGIN(Utility)
|
||||||
|
|
||||||
template <CObject T, size_t N>
|
|
||||||
struct TStaticArray;
|
|
||||||
|
|
||||||
template <CAllocatableObject T, CAllocator<T> A>
|
|
||||||
class TArray;
|
|
||||||
|
|
||||||
inline constexpr size_t DynamicExtent = INDEX_NONE;
|
inline constexpr size_t DynamicExtent = INDEX_NONE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -150,6 +150,8 @@ public:
|
|||||||
FORCEINLINE constexpr TReverseIterator& operator=(const TReverseIterator&) = default;
|
FORCEINLINE constexpr TReverseIterator& operator=(const TReverseIterator&) = default;
|
||||||
FORCEINLINE constexpr TReverseIterator& operator=(TReverseIterator&&) = default;
|
FORCEINLINE constexpr TReverseIterator& operator=(TReverseIterator&&) = default;
|
||||||
|
|
||||||
|
FORCEINLINE constexpr ~TReverseIterator() = default;
|
||||||
|
|
||||||
template <typename T = IteratorType> requires (!CSameAs<TReverseIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
template <typename T = IteratorType> requires (!CSameAs<TReverseIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
||||||
FORCEINLINE constexpr explicit TReverseIterator(T&& InValue) : Current(Forward<T>(InValue)) { }
|
FORCEINLINE constexpr explicit TReverseIterator(T&& InValue) : Current(Forward<T>(InValue)) { }
|
||||||
|
|
||||||
@ -223,6 +225,8 @@ public:
|
|||||||
FORCEINLINE constexpr TMoveIterator& operator=(const TMoveIterator&) = default;
|
FORCEINLINE constexpr TMoveIterator& operator=(const TMoveIterator&) = default;
|
||||||
FORCEINLINE constexpr TMoveIterator& operator=(TMoveIterator&&) = default;
|
FORCEINLINE constexpr TMoveIterator& operator=(TMoveIterator&&) = default;
|
||||||
|
|
||||||
|
FORCEINLINE constexpr ~TMoveIterator() = default;
|
||||||
|
|
||||||
template <typename T = IteratorType> requires (!CSameAs<TMoveIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
template <typename T = IteratorType> requires (!CSameAs<TMoveIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
||||||
FORCEINLINE constexpr explicit TMoveIterator(T&& InValue) : Current(Forward<T>(InValue)) { }
|
FORCEINLINE constexpr explicit TMoveIterator(T&& InValue) : Current(Forward<T>(InValue)) { }
|
||||||
|
|
||||||
@ -292,6 +296,8 @@ public:
|
|||||||
FORCEINLINE constexpr TMoveSentinel& operator=(const TMoveSentinel&) = default;
|
FORCEINLINE constexpr TMoveSentinel& operator=(const TMoveSentinel&) = default;
|
||||||
FORCEINLINE constexpr TMoveSentinel& operator=(TMoveSentinel&&) = default;
|
FORCEINLINE constexpr TMoveSentinel& operator=(TMoveSentinel&&) = default;
|
||||||
|
|
||||||
|
FORCEINLINE constexpr ~TMoveSentinel() = default;
|
||||||
|
|
||||||
template <typename T = SentinelType> requires (!CSameAs<TMoveSentinel, TRemoveCVRef<T>> && CConstructibleFrom<SentinelType, T>)
|
template <typename T = SentinelType> requires (!CSameAs<TMoveSentinel, TRemoveCVRef<T>> && CConstructibleFrom<SentinelType, T>)
|
||||||
FORCEINLINE constexpr explicit TMoveSentinel(T&& InValue) : Last(Forward<T>(InValue)) { }
|
FORCEINLINE constexpr explicit TMoveSentinel(T&& InValue) : Last(Forward<T>(InValue)) { }
|
||||||
|
|
||||||
@ -365,6 +371,8 @@ public:
|
|||||||
FORCEINLINE constexpr TCountedIterator& operator=(const TCountedIterator&) = default;
|
FORCEINLINE constexpr TCountedIterator& operator=(const TCountedIterator&) = default;
|
||||||
FORCEINLINE constexpr TCountedIterator& operator=(TCountedIterator&&) = default;
|
FORCEINLINE constexpr TCountedIterator& operator=(TCountedIterator&&) = default;
|
||||||
|
|
||||||
|
FORCEINLINE constexpr ~TCountedIterator() = default;
|
||||||
|
|
||||||
template <typename T = IteratorType> requires (!CSameAs<TCountedIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
template <typename T = IteratorType> requires (!CSameAs<TCountedIterator, TRemoveCVRef<T>> && CConstructibleFrom<IteratorType, T>)
|
||||||
FORCEINLINE constexpr explicit TCountedIterator(T&& InValue, ptrdiff N) : Current(Forward<T>(InValue)), Length(N) { check_code({ MaxLength = N; }); }
|
FORCEINLINE constexpr explicit TCountedIterator(T&& InValue, ptrdiff N) : Current(Forward<T>(InValue)), Length(N) { check_code({ MaxLength = N; }); }
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
#include "Templates/TypeHash.h"
|
#include "Templates/TypeHash.h"
|
||||||
#include "Templates/Container.h"
|
#include "Templates/Container.h"
|
||||||
#include "Containers/Iterator.h"
|
#include "Containers/Iterator.h"
|
||||||
#include "Containers/ArrayView.h"
|
|
||||||
#include "TypeTraits/TypeTraits.h"
|
#include "TypeTraits/TypeTraits.h"
|
||||||
#include "Miscellaneous/Compare.h"
|
#include "Miscellaneous/Compare.h"
|
||||||
#include "Memory/ObserverPointer.h"
|
#include "Memory/ObserverPointer.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user