cuda-kat
CUDA kernel author's tools
|
An adaptation for host-and-device use of some of the standard C++ library's <utility>
code.
More...
#include <kat/common.hpp>
#include <type_traits>
#include <utility>
#include <kat/detail/integer_sequence.hpp>
Go to the source code of this file.
Classes | |
struct | kat::detail::addr_impl_ref< T > |
struct | kat::detail::addressof_impl< T > |
Functions | |
template<typename T > | |
KAT_FHD CONSTEXPR_SINCE_CPP_14 void | kat::swap (T &a, T &b) noexcept(std::is_nothrow_move_constructible< T >::value &&std::is_nothrow_move_assignable< T >::value) |
Swap two values on the device-side, in-place. More... | |
template<class T > | |
const KAT_FHD T * | kat::addressof (const T &&)=delete |
template<class T > | |
KAT_FHD T * | kat::addressof (T &v) |
Obtains the actual address of the object or function arg, even in presence of overloaded operator&() More... | |
An adaptation for host-and-device use of some of the standard C++ library's <utility>
code.
KAT_FHD T* kat::addressof | ( | T & | v | ) |
Obtains the actual address of the object or function arg, even in presence of overloaded operator&()
<memory>
.
|
noexcept |
Swap two values on the device-side, in-place.