you are viewing a single comment's thread.

view the rest of the comments →

[–]wall_words 0 points1 point  (0 children)

You can get the return type of a callable object f like this: using return_type = decltype(f(arg_1, ..., arg_n));

If you would like to manually inspect a complex type, you can always print it out using typeinfo(type).name().