piranha
0.10
|
Low-level memory management functions. More...
#include <cstddef>
#include <limits>
#include <memory>
#include <new>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <vector>
#include <piranha/config.hpp>
#include <piranha/exceptions.hpp>
#include <piranha/thread_pool.hpp>
#include <piranha/type_traits.hpp>
#include <cstdlib>
Go to the source code of this file.
Namespaces | |
piranha | |
Root piranha namespace. | |
Functions | |
void * | piranha::aligned_palloc (const std::size_t &alignment, const std::size_t &size) |
Allocate memory aligned to a specific value. More... | |
void | piranha::aligned_pfree (const std::size_t &alignment, void *ptr) |
Free memory allocated via piranha::aligned_alloc. More... | |
template<typename T > | |
bool | piranha::alignment_check (const std::size_t &alignment) |
Alignment checks. More... | |
template<typename T , typename = typename std::enable_if<is_container_element<T>::value>::type> | |
void | piranha::parallel_value_init (T *ptr, const std::size_t &size, const unsigned &n_threads) |
Parallel value initialisation. More... | |
template<typename T , typename = typename std::enable_if<is_container_element<T>::value>::type> | |
void | piranha::parallel_destroy (T *ptr, const std::size_t &size, const unsigned &n_threads) |
Parallel destruction. More... | |
template<typename T , typename = typename std::enable_if<is_container_element<T>::value>::type> | |
std::unique_ptr< T[], detail::parallel_deleter< T > > | piranha::make_parallel_array (const std::size_t &size, const unsigned &n_threads) |
Create an array in parallel. More... | |
Low-level memory management functions.
Definition in file memory.hpp.