Foundation
Loading...
Searching...
No Matches
Classes | Functions
Foundation::Core::Ranges Namespace Reference

STL Ranges extensions. More...

Classes

struct  ContainedBy
 Range predicate that checks if a value is contained within a given range. More...
 

Functions

template<typename T >
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.
 

Detailed Description

STL Ranges extensions.

Function Documentation

◆ FirstOf()

template<typename T >
constexpr Optional< range_value_t< T > > Foundation::Core::Ranges::FirstOf ( T &&  range)
constexpr

Returns the first element of a range, or an empty Optional if the range is empty.