refactor(iterator): split iterator library into multiple files

This commit is contained in:
2024-12-14 16:20:26 +08:00
parent a55f03fea0
commit cd7adbfd46
8 changed files with 579 additions and 496 deletions

View File

@ -92,6 +92,20 @@ static_assert(
}
);
struct FDefaultSentinel { explicit FDefaultSentinel() = default; };
inline constexpr FDefaultSentinel DefaultSentinel{ };
struct FUnreachableSentinel
{
explicit FUnreachableSentinel() = default;
template <CWeaklyIncrementable I>
NODISCARD FORCEINLINE constexpr bool operator==(const I&) const& { return false; }
};
inline constexpr FUnreachableSentinel UnreachableSentinel{ };
#if PLATFORM_COMPILER_GCC
# pragma GCC diagnostic pop
#endif