Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Namespaces | Functions
aligned_buffer.hpp File Reference

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>
Include dependency graph for aligned_buffer.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Aligned, (un)initialized and temporary buffer allocation utilities.