Template Struct SharedWrapper¶
Defined in File shared_wrapper.hpp
Struct Documentation¶
-
template<typename
T
>
structripple
::
SharedWrapper
¶ This is a wrapper type which stores a type which should be placed into shared memory when passed to a kernel.
This class simply wrapps the type to store in shared memory so that different functions can be overloaded to enable or disable shared memory functionality.
- Template Parameters
T
: The type to wrap for shared memory.
Public Functions
-
auto
padded
() const noexcept -> bool¶ Determines if the wrapper is padded or not.
- Return
true if the padding is valid, otherwise false.
Public Members
-
PaddingType
padding
= invalid_padding¶ The padding for the type.
Public Static Attributes
-
constexpr PaddingType
invalid_padding
= std::numeric_limits<PaddingType>::max()¶ Defines a size for invalid padding.