ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A smart pointer that holds a reference-counted object and releases it on destruction. More...
#include <refcount.h>
Public Member Functions | |
std::unique_ptr< T, ref_count_deleter > | get_new_ref () const |
Adds a new reference to the owned object. | |
A smart pointer that holds a reference-counted object and releases it on destruction.
A smart pointer that unrefs the owned object on destruction.
T | Type of the object. |
|
inline |
Adds a new reference to the owned object.