#include <di/container/algorithm/replace.h>
|
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 > |
|
◆ operator()() [1/2]
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:
- libs/di/include/di/container/algorithm/replace.h