mpqc::utility::thread_specific< Item > Class Template Reference
Documentation
template<typename Item>
class mpqc::utility::thread_specific< Item >
Implements a highly-limited subset of tbb:enumerable_thread_specific using boost::thread_specific_ptr.
Public Member Functions | |
template<typename F , typename = std::enable_if_t<!std::is_same<thread_specific,std::decay_t<F>>::value>> | |
thread_specific (F &&init) | |
thread_specific (const thread_specific &)=delete | |
thread_specific (thread_specific &&)=default | |
thread_specific & | operator= (const thread_specific &)=delete |
thread_specific & | operator= (thread_specific &&)=default |
~thread_specific () | |
Item & | local () |
Constructor & Destructor Documentation
◆ thread_specific() [1/3]
template<typename Item >
template<typename F , typename = std::enable_if_t<!std::is_same<thread_specific,std::decay_t<F>>::value>>
|
inlineexplicit |
◆ thread_specific() [2/3]
template<typename Item >
|
delete |
◆ thread_specific() [3/3]
template<typename Item >
|
default |
◆ ~thread_specific()
template<typename Item >
|
inline |
Member Function Documentation
◆ local()
template<typename Item >
|
inline |
- Returns
- reference to the thread-local
Item
instance.
◆ operator=() [1/2]
template<typename Item >
|
delete |
◆ operator=() [2/2]
template<typename Item >
|
default |
The documentation for this class was generated from the following file:
- mpqc/util/misc/thread_specific.h