...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::is_vector_type
// In header: <boost/compute/type_traits/is_vector_type.hpp> template<typename T> struct is_vector_type : public boost::mpl::bool_< vector_size< T >::value!=1 > { };
Мета-функция, возвращающаяся Правда, если T является векторным типом.
Правда
T
Например,
is_vector_type<int>::value == false is_vector_type<float4_>::value == true
См. также:
make_vector_type, vector_size
Статья Struct template is_vector_type раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::
реклама