ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
refcount.h File Reference
#include <atomic>
#include <memory>
#include <iostream>
Include dependency graph for refcount.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  base::core::counted_base
 The base class for reference-counted objects. More...
 
struct  base::core::ref_count_deleter
 A deleter functor for creating std::unique_ptr that unrefs objects. More...
 
class  base::core::ref_count_ptr< T >
 A smart pointer that holds a reference-counted object and releases it on destruction. More...
 

Namespaces

namespace  base
 
namespace  base::core
 

Functions

template<typename T >
std::unique_ptr< T, ref_count_deleterbase::core::get_new_ref (T *ptr)
 Adds a new reference to a counted_base pointer.