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

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

Public Member Functions

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

Member Function Documentation

◆ operator()() [1/2]

template<concepts::InputContainer Con, typename U, typename Proj = function::Identity, concepts::IndirectUnaryPredicate< meta::Projected< meta::ContainerIterator< Con >, Proj > > Pred>
requires (concepts::IndirectlyWritable<meta::ContainerIterator<Con>, U const&>)
auto di::container::detail::ReplaceIfFunction::operator() ( Con && container,
Pred pred,
U const & new_value,
Proj proj = {} ) const -> meta::BorrowedIterator<Con>
inlineconstexpr

◆ operator()() [2/2]

template<concepts::InputIterator It, concepts::SentinelFor< It > Sent, typename U, typename Proj = function::Identity, concepts::IndirectUnaryPredicate< meta::Projected< It, Proj > > Pred>
requires (concepts::IndirectlyWritable<It, U const&>)
auto di::container::detail::ReplaceIfFunction::operator() ( It first,
Sent last,
Pred pred,
U const & new_value,
Proj proj = {} ) const -> It
inlineconstexpr

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