Audacity  2.2.0
MemoryX.h File Reference
#include <memory>

Go to the source code of this file.

Classes

struct  std::__make_unique_result< X >
 
struct  std::__make_unique_result< X[]>
 
class  ArrayOf< X >
 
class  ArraysOf< X >
 
class  Maybe< X >
 
class  movable_ptr_with_deleter< T, Deleter >
 
struct  freer
 
struct  Destroyer< T >
 
struct  Final_action< F >
 
struct  RestoreValue< T >
 
class  ValueRestorer< T >
 
struct  IteratorRange< Iterator >
 

Macros

#define safenew   new
 

Typedefs

template<typename T >
using movable_ptr = std::unique_ptr< T >
 
template<typename T , typename Deleter >
using movable_ptr_with_deleter_base = std::unique_ptr< T, Deleter >
 
template<typename T >
using MallocPtr = std::unique_ptr< T, freer >
 
template<typename Character = char>
using MallocString = std::unique_ptr< Character[], freer >
 
template<typename T >
using Destroy_ptr = std::unique_ptr< T, Destroyer< T >>
 

Functions

template<typename X , typename... Args>
__make_unique_result< X >
::scalar_case 
std::make_unique (Args &&...args)
 
template<typename X >
__make_unique_result< X >
::array_case 
std::make_unique (size_t count)
 
template<typename T , typename... Args>
movable_ptr< T > make_movable (Args &&...args)
 
template<typename T , typename Deleter , typename... Args>
movable_ptr_with_deleter< T,
Deleter > 
make_movable_with_deleter (const Deleter &d, Args &&...args)
 
template<typename F >
Final_action< F > finally (F f)
 
template<typename T >
ValueRestorer< T > valueRestorer (T &var)
 
template<typename T >
ValueRestorer< T > valueRestorer (T &var, const T &newValue)
 

Macro Definition Documentation

Typedef Documentation

template<typename T >
using Destroy_ptr = std::unique_ptr<T, Destroyer<T>>
template<typename T >
using MallocPtr = std::unique_ptr< T, freer >
template<typename Character = char>
using MallocString = std::unique_ptr< Character[], freer >
template<typename T >
using movable_ptr = std::unique_ptr<T>
template<typename T , typename Deleter >
using movable_ptr_with_deleter_base = std::unique_ptr<T, Deleter>

Function Documentation

template<typename F >
Final_action<F> finally ( f)
template<typename T , typename... Args>
movable_ptr<T> make_movable ( Args &&...  args)
inline
template<typename T , typename Deleter , typename... Args>
movable_ptr_with_deleter<T, Deleter> make_movable_with_deleter ( const Deleter &  d,
Args &&...  args 
)
inline

References safenew.

template<typename T >
ValueRestorer< T > valueRestorer ( T &  var,
const T &  newValue 
)