alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::concepts::IBuffer Concept Reference

Interface concept for objects describing multidimensional owned memory. More...

#include <IBuffer.hpp>

Concept definition

template<typename T, typename T_ValueType = alpaka::NotRequired>
concept IBuffer = requires(T t) {
requires impl::IBuffer<
std::remove_reference_t<T>,
std::remove_const_t<std::remove_reference_t<T>>,
std::add_const_t<std::remove_reference_t<T>>>;
}
Check whether the specified data type matches the expected type, or if the expected type is alpaka::N...
Interface concept for objects describing multidimensional owned memory.
Definition IBuffer.hpp:64
Interface concept for objects describing multidimensional owned memory.
Definition IBuffer.hpp:46

Detailed Description

Interface concept for objects describing multidimensional owned memory.

An alpaka::buffer-like object contains information about the device(s) to which it is connected. The alpaka::buffer-like object has memory ownership and therefore manages memory lifetime according to the RAII principle.

Attention
Use alpaka::IBuffer to restrict types in your code. The actual interface is described in alpaka::concepts::impl::IBuffer.

Definition at line 64 of file IBuffer.hpp.