Memory related functions.
More...
#include <sps/mm_malloc.h>
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <type_traits>
|
namespace | sps |
| Single Purpose Solutions. A number of lighweight additions to C and/or C++.
|
|
namespace | sps::nix |
|
|
template<typename T > |
using | unique_aligned_array = std::unique_ptr< T[], std::function< void(T *)> > |
|
|
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) |
|
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