vecmem 1.14.0
|
Helper class for returning "pointer-like" objects from the iterator. More...
#include <vecmem/containers/details/jagged_device_vector_iterator.hpp>
Public Member Functions | |
VECMEM_HOST_AND_DEVICE | pointer (const data_pointer data) |
Constructor from a data pointer. | |
VECMEM_HOST_AND_DEVICE value_type * | operator-> () |
Return a pointer to a device vector (non-const) | |
VECMEM_HOST_AND_DEVICE const value_type * | operator-> () const |
Return a pointer to a device vector (const) | |
Helper class for returning "pointer-like" objects from the iterator.
Since the iterator returned everything by value as temporary objects, in order to provide a proper return type for its operator->
, this custom type needs to be used.
|
explicit |
Constructor from a data pointer.
Used a pointer instead of a reference to make the rest of the code in vecmem::details::jagged_device_vector_iterator
as unaware of the existence of this type as possible.