From b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 6 Mar 2025 17:35:39 +0100 Subject: std::span -> eastl::span --- src/zenutil/cache/cachepolicy.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/zenutil/cache/cachepolicy.cpp') diff --git a/src/zenutil/cache/cachepolicy.cpp b/src/zenutil/cache/cachepolicy.cpp index 8bfb11a30..0b3551d38 100644 --- a/src/zenutil/cache/cachepolicy.cpp +++ b/src/zenutil/cache/cachepolicy.cpp @@ -163,7 +163,7 @@ public: Values.insert(Insert, Value); } - inline std::span GetValuePolicies() const final { return Values; } + inline eastl::span GetValuePolicies() const final { return Values; } private: eastl::vector Values; @@ -174,8 +174,8 @@ CacheRecordPolicy::GetValuePolicy(const Oid& Id) const { if (Shared) { - const std::span Values = Shared->GetValuePolicies(); - const auto Iter = + const eastl::span Values = Shared->GetValuePolicies(); + const auto Iter = std::lower_bound(Values.begin(), Values.end(), Id, [](const CacheValuePolicy& A, const Oid& B) { return A.Id < B; }); if (Iter != Values.end() && Iter->Id == Id) { @@ -272,8 +272,8 @@ CacheRecordPolicyBuilder::Build() const auto Add = [](const CachePolicy A, const CachePolicy B) { return ((A | B) & ~CachePolicy::SkipData) | ((A & B) & CachePolicy::SkipData); }; - const std::span Values = Shared->GetValuePolicies(); - Policy.RecordPolicy = BasePolicy; + const eastl::span Values = Shared->GetValuePolicies(); + Policy.RecordPolicy = BasePolicy; for (const CacheValuePolicy& ValuePolicy : Values) { Policy.RecordPolicy = Add(Policy.RecordPolicy, ValuePolicy.Policy); -- cgit v1.2.3