12 using namespace std::ranges;
16 template <
typename Range>
23 return std::ranges::find(
range, value) != std::ranges::end(
range);
32 if (
auto it = std::ranges::begin(range);
it != std::ranges::end(range))
42 using namespace std::views;
constexpr Optional< range_value_t< T > > FirstOf(T &&range)
Returns the first element of a range, or an empty Optional if the range is empty.
Definition Ranges.hpp:30
Header-only convenience utilities.
Definition Chrono.hpp:3
std::unique_ptr< T, StlDeleter< T > > UniquePtr
std::unique_ptr with custom deleter that uses a Foundation::Core::Allocator to deallocate memory.
Definition Allocator.hpp:161
Range predicate that checks if a value is contained within a given range.
Definition Ranges.hpp:18
constexpr bool operator()(auto &&value) const
Definition Ranges.hpp:21
Range const & range
Definition Ranges.hpp:19
ContainedBy(Range const &range)
Definition Ranges.hpp:20