Embedded Artistry Framework
Embedded Systems C++ Framework
Namespaces | Typedefs | Functions
aligned_ptr.hpp File Reference
#include <aligned_malloc.h>
#include <memory>
Include dependency graph for aligned_ptr.hpp:

Namespaces

 embutil
 Embedded framework utility functions and classes.
 

Typedefs

template<typename TType >
using embutil::unique_ptr_aligned = std::unique_ptr< TType, decltype(&aligned_free)>
 Unique pointer alias for aligned memory (calls aligned_free()). More...
 

Functions

template<typename TType >
unique_ptr_aligned< TType > embutil::aligned_uptr (size_t align, size_t size) noexcept
 Create a unique pointer to aligned memory. More...
 
template<typename TType >
std::shared_ptr< TType > embutil::aligned_sptr (size_t align, size_t size) noexcept
 Create a shared pointer to aligned memory. More...