How space S names T storage, with one interface for pointers and for the handles that are not (#1017, following std::mdspan's accessor policy): handle_type S::handle_type<T>, or T* const_handle_type const T* for a pointer; the handle itself otherwise (as for mdspan, constness is the accessor's business) is_pointer whether handle_type is T* offset(h, i) the handle of element i: h + i, or S::offset(h, i) address(h) the host address of the first element, in a host-accessible space: h, or S::address(h) same(a, b) whether two handles name the same storage, where that can be told: equal pointers, or equal handles of a type with ==; false for a handle without == is_null(h) whether h names no storage (nullptr, or a value-initialized handle of a type with ==).
More...
#include <memory_space.hpp>
template<typename S, typename T>
struct mtl::detail::handle_traits< S, T >
How space S names T storage, with one interface for pointers and for the handles that are not (#1017, following std::mdspan's accessor policy): handle_type S::handle_type<T>, or T* const_handle_type const T* for a pointer; the handle itself otherwise (as for mdspan, constness is the accessor's business) is_pointer whether handle_type is T* offset(h, i) the handle of element i: h + i, or S::offset(h, i) address(h) the host address of the first element, in a host-accessible space: h, or S::address(h) same(a, b) whether two handles name the same storage, where that can be told: equal pointers, or equal handles of a type with ==; false for a handle without == is_null(h) whether h names no storage (nullptr, or a value-initialized handle of a type with ==).
◆ const_handle_type
template<typename S, typename T>
◆ handle_type
template<typename S, typename T>
◆ address() [1/2]
template<typename S, typename T>
◆ address() [2/2]
template<typename S, typename T>
◆ is_null()
template<typename S, typename T>
|
|
inlinestaticnodiscardnoexcept |
◆ offset()
template<typename S, typename T>
◆ same()
template<typename S, typename T>
|
|
inlinestaticnodiscardnoexcept |
◆ is_pointer
template<typename S, typename T>
The documentation for this struct was generated from the following file: