- Tumbleweed 2026.11.13-1.1
- Leap-16.0
- Leap-15.6
| std::indirect_unary_predicate(3) | C++ Standard Libary | std::indirect_unary_predicate(3) |
NAME¶
std::indirect_unary_predicate - std::indirect_unary_predicate
Synopsis¶
Defined in header <iterator> template< class F, class I >
concept indirect_unary_predicate = std::indirectly_readable<I> && (since C++20) std::copy_constructible<F> && std::predicate<F&, /*indirect-value-t*/<I>> &&
std::predicate<F&, std::iter_reference_t<I>>;
The concept indirect_unary_predicate specifies requirements for algorithms that call unary predicates as their arguments. The key difference between this concept and std::predicate is that it is applied to the type that I references, rather than I itself.
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior
one of the requirements was defined in terms defined in terms of P2609R3
C++20 of std::iter_value_t<I>& /*indirect-value-t*/<I>
which mishandled projections resulting in to correctly handle such
incompatibility with predicate F& projections
indirect_unary_predicate required F& to P2997R1 C++20 satisfy predicate
with does not require
std::iter_common_reference_t<I>
| 2026.11.10 | http://cppreference.com |