What is a good use case for tr1 :: result_of?

I heard that tr1 :: result_of is often used inside Boost ... I am wondering if there are any good (simple) use cases for tr1 :: result_of that I can use at home.

+3
source share
3 answers

For a description of result_of, see open_std.org . Microsoft has a quick example unit test wrapper that uses result_of.

+4
source

There are no simple cases. However, it is used in BOOST_AUTO, which can be used, for example, in

BOOST_AUTO(x, make_pair(a, b));
+3
source

. , , - . result_of <T> :: type , . , .

+1

Source: https://habr.com/ru/post/1698165/


All Articles