Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template type_name

boost::compute::type_name

Synopsis

// In header: <boost/compute/type_traits/type_name.hpp>


template<typename T> const char * type_name();

Description

Returns the OpenCL type name for the type T as a string.

For example:

type_name<float>() == "float"
type_name<float4_>() == "float4"

See Also:

type_definition<T>()

Returns:

a string containing the type name for T


PrevUpHomeNext