A partition that represents a union of sub-partitions of temporary memories which are not used at the same time, and for which the allocated temporary memory can be shared.
More...
#include <temp_storage.hpp>
template<typename... Ts>
struct detail::temp_storage::union_partition< Ts >
A partition that represents a union of sub-partitions of temporary memories which are not used at the same time, and for which the allocated temporary memory can be shared.
- Template Parameters
-
Ts | - The sub-partitions to allocate temporary memory for. Each should have the following member functions: layout get_layout() - Compute the required storage layout for the partition. void set_storage(void* const storage) - Update the internal destination pointer or the destination pointers of sub-partitions with the given pointer. storage has at least the required size and alignment as described by the result of get_layout() . |
◆ set_storage()
Assigns the final storage for this partition.
storage
is assumed to have the required alignment and size as described by the layout returned by get_layout()
.
- Parameters
-
storage | - Base pointer to the storage to be used for this partition. |
The documentation for this struct was generated from the following file: