SOFUS ..
Classes | Namespaces | Typedefs | Functions
memory File Reference

Memory related functions. More...

#include <sps/mm_malloc.h>
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <type_traits>
Include dependency graph for memory:
This graph shows which files directly or indirectly include this file:

Classes

class  unique_aligned_multi_array< T, D, typename >
 Aligned multi-dimensional array. More...
 
class  unique_aligned_multi_array< T, 1, void >
 Aligned one-dimensional array. More...
 
class  unique_aligned_multi_array< T, 2, void >
 Aligned two-dimensional array. More...
 

Namespaces

namespace  sps
 Single Purpose Solutions. A number of lighweight additions to C and/or C++.
 
namespace  sps::nix
 

Typedefs

template<typename T >
using unique_aligned_array = std::unique_ptr< T[], std::function< void(T *)> >
 

Functions

template<typename T , std::size_t Alignment = 4*sizeof(T)>
unique_aligned_array< T > unique_aligned_array_create (size_t n)
 
template<class T , size_t I>
std::enable_if< I==2 &&std::is_pod< T >::value, unique_aligned_multi_array< T, 2, void > >::type unique_aligned_multi_array_create (size_t m, size_t n)
 
template<class T , size_t I>
std::enable_if< I==1 &&std::is_pod< T >::value, unique_aligned_multi_array< T, 1, void > >::type unique_aligned_multi_array_create (size_t m)
 

Detailed Description

Memory related functions.

>

Author
Jens Munk Hansen jens..nosp@m.munk.nosp@m..hans.nosp@m.en@g.nosp@m.mail..nosp@m.com
Date
Thu Mar 23 22:48:58 2017