tenno 0.1.0
Loading...
Searching...
No Matches
tenno::shared_ptr< T, Deleter, Alloc >::control_block Struct Reference

#include <memory.hpp>

Public Member Functions

 control_block ()=default
 
void deallocate ()
 

Data Fields

T * object
 
Alloc allocator
 
Deleter deleter
 
long num_ptrs
 
long num_weak_ptrs
 
tenno::mutex cb_mutex
 

Detailed Description

template<class T, class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
struct tenno::shared_ptr< T, Deleter, Alloc >::control_block

Definition at line 96 of file memory.hpp.

Constructor & Destructor Documentation

◆ control_block()

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
tenno::shared_ptr< T, Deleter, Alloc >::control_block::control_block ( )
default

Member Function Documentation

◆ deallocate()

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
void tenno::shared_ptr< T, Deleter, Alloc >::control_block::deallocate ( )
inline

Definition at line 105 of file memory.hpp.

Field Documentation

◆ allocator

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
Alloc tenno::shared_ptr< T, Deleter, Alloc >::control_block::allocator

Definition at line 99 of file memory.hpp.

◆ cb_mutex

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
tenno::mutex tenno::shared_ptr< T, Deleter, Alloc >::control_block::cb_mutex

Definition at line 103 of file memory.hpp.

◆ deleter

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
Deleter tenno::shared_ptr< T, Deleter, Alloc >::control_block::deleter

Definition at line 100 of file memory.hpp.

◆ num_ptrs

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
long tenno::shared_ptr< T, Deleter, Alloc >::control_block::num_ptrs

Definition at line 101 of file memory.hpp.

◆ num_weak_ptrs

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
long tenno::shared_ptr< T, Deleter, Alloc >::control_block::num_weak_ptrs

Definition at line 102 of file memory.hpp.

◆ object

template<class T , class Deleter = tenno::default_delete<T>, class Alloc = tenno::allocator<T>>
T* tenno::shared_ptr< T, Deleter, Alloc >::control_block::object

Definition at line 98 of file memory.hpp.


The documentation for this struct was generated from the following file: