Flutter Engine
fml::ThreadLocalUniquePtr< T > Class Template Reference

#include <thread_local.h>

Public Member Functions

 ThreadLocalUniquePtr ()=default
 
T * get () const
 
void reset (T *ptr)
 

Detailed Description

template<typename T>
class fml::ThreadLocalUniquePtr< T >

Definition at line 64 of file thread_local.h.

Constructor & Destructor Documentation

◆ ThreadLocalUniquePtr()

template<typename T >
fml::ThreadLocalUniquePtr< T >::ThreadLocalUniquePtr ( )
default

Member Function Documentation

◆ get()

template<typename T >
T* fml::ThreadLocalUniquePtr< T >::get ( ) const
inline

Definition at line 68 of file thread_local.h.

References fml::ThreadLocalUniquePtr< T >::get().

Referenced by fml::ThreadLocalUniquePtr< T >::get().

68 { return ptr_.get(); }

◆ reset()

template<typename T >
void fml::ThreadLocalUniquePtr< T >::reset ( T *  ptr)
inline

Definition at line 69 of file thread_local.h.

References FML_DISALLOW_COPY_AND_ASSIGN.

69 { ptr_.reset(ptr); }

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