Public Member Functions | Private Attributes | Friends | List of all members
absl::container_internal::Tracked< T > Class Template Reference

#include <tracked.h>

Public Member Functions

size_t num_copies ()
 
size_t num_moves ()
 
Trackedoperator= (const Tracked &that)
 
Trackedoperator= (Tracked &&that)
 
 Tracked ()
 
 Tracked (const T &val)
 
 Tracked (const Tracked &that)
 
 Tracked (Tracked &&that)
 
const T & val () const
 

Private Attributes

std::shared_ptr< size_t > num_copies_ = std::make_shared<size_t>(0)
 
std::shared_ptr< size_t > num_moves_ = std::make_shared<size_t>(0)
 
val_
 

Friends

bool operator!= (const Tracked &a, const Tracked &b)
 
bool operator== (const Tracked &a, const Tracked &b)
 

Detailed Description

template<class T>
class absl::container_internal::Tracked< T >

Definition at line 27 of file tracked.h.

Constructor & Destructor Documentation

◆ Tracked() [1/4]

template<class T >
absl::container_internal::Tracked< T >::Tracked ( )
inline

Definition at line 29 of file tracked.h.

◆ Tracked() [2/4]

template<class T >
absl::container_internal::Tracked< T >::Tracked ( const T &  val)
inline

Definition at line 31 of file tracked.h.

◆ Tracked() [3/4]

template<class T >
absl::container_internal::Tracked< T >::Tracked ( const Tracked< T > &  that)
inline

Definition at line 32 of file tracked.h.

◆ Tracked() [4/4]

template<class T >
absl::container_internal::Tracked< T >::Tracked ( Tracked< T > &&  that)
inline

Definition at line 38 of file tracked.h.

Member Function Documentation

◆ num_copies()

template<class T >
size_t absl::container_internal::Tracked< T >::num_copies ( )
inline

Definition at line 66 of file tracked.h.

◆ num_moves()

template<class T >
size_t absl::container_internal::Tracked< T >::num_moves ( )
inline

Definition at line 67 of file tracked.h.

◆ operator=() [1/2]

template<class T >
Tracked& absl::container_internal::Tracked< T >::operator= ( const Tracked< T > &  that)
inline

Definition at line 44 of file tracked.h.

◆ operator=() [2/2]

template<class T >
Tracked& absl::container_internal::Tracked< T >::operator= ( Tracked< T > &&  that)
inline

Definition at line 50 of file tracked.h.

◆ val()

template<class T >
const T& absl::container_internal::Tracked< T >::val ( ) const
inline

Definition at line 57 of file tracked.h.

Friends And Related Function Documentation

◆ operator!=

template<class T >
bool operator!= ( const Tracked< T > &  a,
const Tracked< T > &  b 
)
friend

Definition at line 62 of file tracked.h.

◆ operator==

template<class T >
bool operator== ( const Tracked< T > &  a,
const Tracked< T > &  b 
)
friend

Definition at line 59 of file tracked.h.

Member Data Documentation

◆ num_copies_

template<class T >
std::shared_ptr<size_t> absl::container_internal::Tracked< T >::num_copies_ = std::make_shared<size_t>(0)
private

Definition at line 72 of file tracked.h.

◆ num_moves_

template<class T >
std::shared_ptr<size_t> absl::container_internal::Tracked< T >::num_moves_ = std::make_shared<size_t>(0)
private

Definition at line 71 of file tracked.h.

◆ val_

template<class T >
T absl::container_internal::Tracked< T >::val_
private

Definition at line 70 of file tracked.h.


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


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23