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.
For a description of result_of, see open_std.org . Microsoft has a quick example unit test wrapper that uses result_of.
There are no simple cases. However, it is used in BOOST_AUTO, which can be used, for example, in
BOOST_AUTO
BOOST_AUTO(x, make_pair(a, b));
. , , - . result_of <T> :: type , . , .
Source: https://habr.com/ru/post/1698165/More articles:Debugging: runtime break on file change? (windows) - debuggingWhat will be the pNext pointer in the following case using C? - cHas anyone used / created fisheye table columns? - javascriptAny alternative to ASP.NET page templates? - .netWhat are the best practices for developing consistent libraries? - pythonAtoi () conversion error - c ++The assembly is not saved correctly - reflectionFlexibility in project scope? - scopeHow to click pixels faster on iPhone? - iphoneDatabase and Version Management System - version-controlAll Articles