|
Uni20
Asynchronous tensor and runtime library.
|
Aligned, (un)initialized and temporary buffer allocation utilities. More...
#include "initialization.hpp"#include <algorithm>#include <complex>#include <cstddef>#include <cstdlib>#include <memory>#include <new>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | uni20 |
Functions | |
| template<typename T > | |
| auto | uni20::allocate_temporary_buffer (std::size_t N, std::size_t align=64) |
Allocate a temporary buffer of T[N] aligned to align. | |
| template<typename T > | |
| auto | uni20::allocate_temporary_buffer_uninitialized (std::size_t N, std::size_t align=64) |
Allocate a temporary buffer of T[N] that is always uninitialized. | |
| template<typename T > | |
| detail::aligned_buf_t< T > | uni20::allocate_uninitialized_buffer (std::size_t N, std::size_t align=64) |
Allocate raw, aligned storage for T[N] without running constructors or destructors. | |
Aligned, (un)initialized and temporary buffer allocation utilities.