diff --git a/Redcraft.Utility/Source/Public/Algorithms/Basic.h b/Redcraft.Utility/Source/Public/Algorithms/Basic.h index 7ea63e1..f967f7d 100644 --- a/Redcraft.Utility/Source/Public/Algorithms/Basic.h +++ b/Redcraft.Utility/Source/Public/Algorithms/Basic.h @@ -115,11 +115,11 @@ NODISCARD FORCEINLINE constexpr ptrdiff Distance(I First, S Last) } } -/** @return The size of the range. */ +/** @return The size of the range. The range will not be modified if it is a sized range. */ template NODISCARD FORCEINLINE constexpr ptrdiff Distance(R&& Range) { - if constexpr (CSizedRange) + if constexpr (CSizedRange) { return static_cast(Ranges::Num(Range)); }