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

#include <tracked.h>

List of all members.

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

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

Definition at line 29 of file tracked.h.

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

Definition at line 31 of file tracked.h.

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

Definition at line 32 of file tracked.h.

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

Definition at line 38 of file tracked.h.


Member Function Documentation

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

Definition at line 66 of file tracked.h.

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

Definition at line 67 of file tracked.h.

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

Definition at line 44 of file tracked.h.

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

Definition at line 50 of file tracked.h.

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

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

Definition at line 62 of file tracked.h.

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

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.

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.

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 Wed Jun 19 2019 19:42:16