diff --git a/Redcraft.Utility/Source/Public/Containers/Iterator.h b/Redcraft.Utility/Source/Public/Containers/Iterator.h index c884b8e..58f3292 100644 --- a/Redcraft.Utility/Source/Public/Containers/Iterator.h +++ b/Redcraft.Utility/Source/Public/Containers/Iterator.h @@ -611,28 +611,28 @@ TOutputIterator(F) -> TOutputIterator; /** Creates a TReverseIterator of type inferred from the argument. */ template requires (CBidirectionalIterator> && CConstructibleFrom, I>) -NODISCARD FORCEINLINE constexpr TReverseIterator MakeReverseIterator(I&& Iter) +NODISCARD FORCEINLINE constexpr auto MakeReverseIterator(I&& Iter) { return TReverseIterator>(Forward(Iter)); } /** Creates a TMoveIterator of type inferred from the argument. */ template requires (CInputIterator> && CConstructibleFrom, I>) -NODISCARD FORCEINLINE constexpr TMoveIterator MakeMoveIterator(I&& Iter) +NODISCARD FORCEINLINE constexpr auto MakeMoveIterator(I&& Iter) { return TMoveIterator>(Forward(Iter)); } /** Creates a TMoveSentinel of type inferred from the argument. */ template requires (CSemiregular> && CConstructibleFrom, I>) -NODISCARD FORCEINLINE constexpr TMoveSentinel MakeMoveSentinel(I&& Iter) +NODISCARD FORCEINLINE constexpr auto MakeMoveSentinel(I&& Iter) { return TMoveSentinel>(Forward(Iter)); } /** Creates a TCountedIterator of type inferred from the argument. */ template requires (CInputOrOutputIterator> && CConstructibleFrom, I>) -NODISCARD FORCEINLINE constexpr TCountedIterator MakeCountedIterator(I&& Iter, ptrdiff N) +NODISCARD FORCEINLINE constexpr auto MakeCountedIterator(I&& Iter, ptrdiff N) { return TCountedIterator>(Forward(Iter), N); }