Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Data Structures | Namespaces | Functions
memory.hpp File Reference
#include <memory>
#include <utility>
#include <compare>
#include "type_traits.hpp"
#include "clone.hpp"
Include dependency graph for memory.hpp:

Go to the source code of this file.

Data Structures

class  ext::cow_shared_ptr< T >
 Specialisation of copy on write pointer for classes based with copy on write pointer base. More...
 
class  ext::smart_ptr< T >
 Managed pointer simulating value like behavior. More...
 

Namespaces

namespace  ext
 

Functions

template<class T >
std::ostream & ext::operator<< (std::ostream &out, const ext::cow_shared_ptr< T > &ptr)
 Operator to print the copy on write shared pointer to the output stream. More...
 
template<class T >
std::ostream & ext::operator<< (std::ostream &out, const ext::smart_ptr< T > &ptr)
 Operator to print the smart pointer to the output stream. More...