Go to the documentation of this file.
68 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
69 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
124 if (
next_ ==
this)
return true;
135 template <
typename T>
148 assert(&ptr !=
this);
178 template <
typename U>
182 template <
typename U>
188 template <
typename U>
212 template<
typename T>
inline
214 return ptr == x.
get();
217 template<
typename T>
inline
219 return ptr != x.
get();
225 template <
typename T>
233 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
bool operator==(T *p) const
bool operator==(T *ptr, const linked_ptr< T > &x)
void join(linked_ptr_internal const *ptr) GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex)
bool operator==(linked_ptr< U > const &ptr) const
#define GTEST_LOCK_EXCLUDED_(locks)
linked_ptr_internal const * next_
linked_ptr & operator=(linked_ptr const &ptr)
bool operator!=(T *p) const
bool operator!=(linked_ptr< U > const &ptr) const
bool depart() GTEST_LOCK_EXCLUDED_(g_linked_ptr_mutex)
linked_ptr< T > make_linked_ptr(T *ptr)
linked_ptr(linked_ptr< U > const &ptr)
linked_ptr(linked_ptr const &ptr)
linked_ptr_internal link_
linked_ptr & operator=(linked_ptr< U > const &ptr)
bool operator!=(T *ptr, const linked_ptr< T > &x)
void copy(linked_ptr< U > const *ptr)
GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_(g_linked_ptr_mutex)
fcl
Author(s):
autogenerated on Wed Feb 17 2021 03:40:07