raw_reference_cast
#
Overloads#
raw_reference_cast(ref)
#
-
template<typename T>
detail::raw_reference<T>::type thrust::raw_reference_cast( - T &ref,
raw_reference_cast
creates a “raw” reference from a wrapped reference type, simply returning the underlying reference, should it exist.If the argument is not a reference wrapper, the result is a reference to the argument.
See also
Note
There are two versions of
raw_reference_cast
. One forconst
references, and one for non-const
.- Parameters:
ref – The reference of interest.
- Returns:
The raw reference obtained by dereferencing the result of
raw_pointer_cast
applied to the address of ref.
raw_reference_cast(ref)
#
-
template<typename T>
detail::raw_reference<constT>::type thrust::raw_reference_cast( - const T &ref,
raw_reference_cast
creates a “raw” reference from a wrapped reference type, simply returning the underlying reference, should it exist.If the argument is not a reference wrapper, the result is a reference to the argument.
See also
Note
There are two versions of
raw_reference_cast
. One forconst
references, and one for non-const
.- Parameters:
ref – The reference of interest.
- Returns:
The raw reference obtained by dereferencing the result of
raw_pointer_cast
applied to the address of ref.