TrinityCore
advstd::ranges::Contains Struct Reference

#include <advstd.h>

Public Member 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>, T const*>
constexpr bool operator() (I first, S last, T const &value, Proj proj={}) const
 
template<std::ranges::input_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>, T const*>
constexpr bool operator() (R &&r, T const &value, Proj proj={}) const
 

Detailed Description

Definition at line 65 of file advstd.h.

Member Function Documentation

◆ operator()() [1/2]

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>, T const*>
constexpr bool advstd::ranges::Contains::operator() ( first,
last,
T const &  value,
Proj  proj = {} 
) const
inlineconstexpr

Definition at line 69 of file advstd.h.

◆ operator()() [2/2]

template<std::ranges::input_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>, T const*>
constexpr bool advstd::ranges::Contains::operator() ( R &&  r,
T const &  value,
Proj  proj = {} 
) const
inlineconstexpr

Definition at line 76 of file advstd.h.


The documentation for this struct was generated from the following file: