mn_unique_ptr.hpp File Reference

Go to the source code of this file.

Classes

class  mn::pointer::basic_unique_ptr< T, TAllocator, TDeleter >
 A simple unique_ptr, for a single object. More...
 
class  mn::pointer::basic_unique_ptr< T[], TAllocator, TDeleter >
 A simple unique_ptr, for a array object. More...
 

Namespaces

 mn
 
 mn::pointer
 

Typedefs

template<typename T , class TAllocator = memory::default_allocator, class TDeleter = memory::default_delete<T, TAllocator>>
using mn::pointer::unique_ptr = basic_unique_ptr< T, TAllocator, TDeleter >
 

Functions

template<typename T , class TA , class TD >
void mn::pointer::swap (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator== (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator!= (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator< (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator> (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator<= (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , class TA , class TD >
bool mn::pointer::operator>= (basic_unique_ptr< T, TA, TD > &a, basic_unique_ptr< T, TA, TD > &b)
 
template<typename T , typename... TArgs>
basic_unique_ptr< T > mn::pointer::make_unique (TArgs &&... args)
 
template<typename T >
basic_unique_ptr< T[]> mn::pointer::make_unique (size_t siNums)
 
template<typename T , typename... TArgs>
basic_unique_ptr< T[]> mn::pointer::make_unique (TArgs &&...)=delete