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

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

Public Member Functions

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

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

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