HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
memory_utils.h File Reference

Memory management utilities for exception-free design. More...

#include <memory>
#include <new>
#include <utility>
Include dependency graph for memory_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hf
 
namespace  hf::utils
 

Functions

template<typename T , typename... Args>
std::unique_ptr< T > hf::utils::make_unique_nothrow (Args &&... args)
 Creates a unique_ptr using nothrow new for exception-free design.
 
template<typename T >
std::unique_ptr< T[]> hf::utils::make_unique_array_nothrow (size_t size)
 Creates a unique_ptr for arrays using nothrow new.
 

Detailed Description

Memory management utilities for exception-free design.