libclcxx
C++ libraries for OpenCL
std::replace_pointer_address_space< T, U > Struct Template Reference

Detailed Description

template<typename T, typename U>
struct std::replace_pointer_address_space< T, U >

Provides the member typedef type which is the same as T, except that the address space of the type pointed to by a pointer T is replaced with the address space of the type pointed to by a pointer U.

If T or U are not pointer types or either have no address space qualifier, then type is the same as the T provided.

Template Parameters
T- a pointer type that points to the type whose address space qualifer is to be replaced.
U- a pointer type where the address space for T is taken from.

Example:

// This will replace the address space of the first template argument with
__constant from the second template argument.
std::replace_pointer_address_space<__local double *, __constant double
*>::type

The documentation for this struct was generated from the following file: