opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
ranges.h File Reference
#include <algorithm>
#include <iterator>
#include <ranges>
#include <utility>
Include dependency graph for ranges.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  osc
 
namespace  osc::cpp23
 

Functions

template<std::input_iterator I, std::sentinel_for< I > S, class T , class Proj = std::identity>
requires std::indirect_binary_predicate<std::ranges::equal_to, std::projected<I, Proj>, const T*>
constexpr bool osc::cpp23::contains (I first, S last, const T &value, Proj proj={})
 
template<std::ranges::forward_range R, class T , class Proj = std::identity>
requires std::indirect_binary_predicate<std::ranges::equal_to, std::projected<std::ranges::iterator_t<R>, Proj>, const T*>
constexpr bool osc::cpp23::contains (R &&r, const T &value, Proj proj={})