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

Detailed Description

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

Provides the member typedef type which is the same as T, except that the address space of the type reference T refers to is replaced with the address space taken from the type reference U refers to.

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

Template Parameters
T- a reference type with address space it refers to being replaced.
U- a reference type from which address space is taken from to replace the address space of T.

Example:

// This will replace the address space of the first template argument with
__global from the second template argument.
std::replace_reference_address_space<__private int &, __global int &>::type

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