std::experi...ct_result_of(3)
πΈ NAME πΈ
std::experimental::ranges::indirect_result_of β that's the name, and also std::experimental::ranges::indirect_result_of again, because the manpage said it twice and we are not skipping anything. This page is from the C++ Standard Libary manual, bestie.
β¨ Synopsis β¨
Okay so this one is defined in the header <experimental/ranges/iterator>, and the whole thing looks exactly like this:
Defined in header <experimental/ranges/iterator>
template< class > struct indirect_result_of {};
template< class F, class... Is >
requires Invocable<F, ranges::reference_t<Is>...> (ranges
TS)
struct indirect_result_of<F(Is...)>
: std::result_of<F(ranges::reference_t<Is>&&...)> {};
Let's break it down, no cap: there's a primary template template< class > struct indirect_result_of {}; β yes, empty. Then there's the ranges TS specialization for F(Is...), and it has a requires clause: Invocable<F, ranges::reference_t<Is>...>. That specialization inherits from std::result_of<F(ranges::reference_t<Is>&&...)>. That's the whole vibe. Periodt.
byeeee π this was sourced from cppreference.com, dated 2024.06.10, and the footer title is std::experi...ct_result_of(3) β mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms