|
DSA - Data Structures and Algorithms
|
This file contains implementation of memory functions. More...
#include <memory>Go to the source code of this file.
Functions | |
| template<typename T, typename... Args> | |
| auto | dsa::make_unique (Args &&... args) -> typename std::enable_if<!std::is_array< T >::value, std::unique_ptr< T > >::type |
| Creates T type object and wraps it std::unique_ptr. | |
This file contains implementation of memory functions.
Definition in file memory.h.
| auto dsa::make_unique | ( | Args &&... | args | ) | -> typename std::enable_if<!std::is_array<T>::value, std::unique_ptr<T>>::type |
Creates T type object and wraps it std::unique_ptr.
Function implements std::make_unique from c++14 into c++11. Will work only when T is NOT an array type object (T[])
| T | type of object created by function |
| Args | argument types for T object constructor |
| [in] | args | arguments used by T object ctor |
Definition at line 36 of file memory.h.