...one of the most highly regarded and expertly designed C++ library projects in the world. — Herb Sutter and Andrei Alexandrescu, C++ Coding Standards
...one of the most highly regarded and expertly designed C++ library projects in the world.
boost::compute::result_of
// In header: <boost/compute/type_traits/result_of.hpp> template<typename Signature> struct result_of { // types typedef ::boost::tr1_result_of< Signature >::type type; };
Возвращает результат<Function>при вызове с<Args>.
Function
Args
Например,
// int + int = int result_of<plus(int, int)>::type == int
Статья Struct template result_of раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::
реклама