theCore C++ embedded framework
memory.hpp File Reference

Memory managment helpers: shared pointer. More...

#include <ecl/assert.h>
#include <cstddef>
#include <utility>
Include dependency graph for memory.hpp:
This graph shows which files directly or indirectly include this file:

Data Structures

class  ecl::aux
 Base helper class, used internally by shared_ptr. More...
 
class  ecl::shared_ptr< T >
 Classical shared pointer. More...
 
struct  ecl::shared_allocation_size< T, Alloc >
 
class  ecl::weak_ptr< T >
 

Namespaces

 ecl
 

Functions

template<typename T , class Alloc , class... Args>
shared_ptr< T > ecl::allocate_shared (const Alloc &alloc, Args... args)
 
template<typename T >
bool ecl::operator== (const shared_ptr< T > &shr, std::nullptr_t nullp)
 
template<typename T >
bool ecl::operator!= (const shared_ptr< T > &shr, std::nullptr_t nullp)
 
template<typename T >
bool ecl::operator== (const shared_ptr< T > &shr1, const shared_ptr< T > &shr2)
 
template<typename T >
bool ecl::operator!= (const shared_ptr< T > &shr1, const shared_ptr< T > &shr2)
 
template<typename T >
bool ecl::operator! (const shared_ptr< T > &shr)
 

Detailed Description

Memory managment helpers: shared pointer.

Todo:

Implement unique poitner

Detailed description