libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
ranges_extras.h File Reference
#include <ranges>
Include dependency graph for ranges_extras.h:

Go to the source code of this file.

Namespaces

namespace  Quotient
 

Functions

template<typename RangeT , typename ValT , typename ProjT = std::identity>
requires std::indirectly_comparable<std::ranges::iterator_t<RangeT>, const ValT*, std::ranges::equal_to, ProjT>
auto Quotient::findIndex (const RangeT &range, const ValT &value, ProjT proj={})
 An indexOf() alternative for any range.
 
template<class TargetT , typename SourceT >
constexpr auto Quotient::rangeTo (SourceT &&sourceRange)
 A replacement of std::ranges::to() while toolchains catch up.