Iros
 
Loading...
Searching...
No Matches
di::container::detail::FindFunction Struct Reference

#include <di/container/algorithm/find.h>

Public Member Functions

template<concepts::InputIterator Iter, concepts::SentinelFor< Iter > Sent, typename T, typename Proj = function::Identity>
requires (concepts::IndirectBinaryPredicate<function::Equal, meta::Projected<Iter, Proj>, T const*>)
constexpr auto operator() (Iter first, Sent last, T const &needle, Proj proj={}) const -> Iter
 
template<concepts::InputContainer Con, typename T, typename Proj = function::Identity>
requires (concepts::IndirectBinaryPredicate<function::Equal, meta::Projected<meta::ContainerIterator<Con>, Proj>, T const*>)
constexpr auto operator() (Con &&container, T const &needle, Proj proj={}) const -> meta::BorrowedIterator< Con >
 

Member Function Documentation

◆ operator()() [1/2]

template<concepts::InputContainer Con, typename T, typename Proj = function::Identity>
requires (concepts::IndirectBinaryPredicate<function::Equal, meta::Projected<meta::ContainerIterator<Con>, Proj>, T const*>)
auto di::container::detail::FindFunction::operator() ( Con && container,
T const & needle,
Proj proj = {} ) const -> meta::BorrowedIterator<Con>
inlineconstexpr

◆ operator()() [2/2]

template<concepts::InputIterator Iter, concepts::SentinelFor< Iter > Sent, typename T, typename Proj = function::Identity>
requires (concepts::IndirectBinaryPredicate<function::Equal, meta::Projected<Iter, Proj>, T const*>)
auto di::container::detail::FindFunction::operator() ( Iter first,
Sent last,
T const & needle,
Proj proj = {} ) const -> Iter
inlineconstexpr

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