...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::make_vector_type
// In header: <boost/compute/type_traits/make_vector_type.hpp> template<typename Scalar, size_t Size> struct make_vector_type { };
Мета-функция, которая возвращает векторный тип для Scalar с Size.
Scalar
Size
Например,
make_vector_type<int, 2>::type == int2_ make_vector_type<float, 4>::type == float4_
См. также:
is_vector_type
Статья Struct template make_vector_type раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::
реклама