Can I get the return type of multiple chained functions calls?
问题 I would like to store functions in an ordered collection and then apply all of them to a certain collection, which would result in obtaining heavily modified values, stored in another collection. My initial attempt consisted of creating an std::tuple of said functions and trying to get the result type ( std::invoke_result ) of applying all of them to a certain type: int main() { auto multiply = [](const auto arg){ return arg * arg; }; auto change = [](const auto arg){ return std::vector{arg};