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_specificoperator= (const thread_specific &)=delete
 
thread_specificoperator= (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>>
mpqc::utility::thread_specific< Item >::thread_specific ( F &&  init)
inlineexplicit

◆ thread_specific() [2/3]

template<typename Item >
mpqc::utility::thread_specific< Item >::thread_specific ( const thread_specific< Item > &  )
delete

◆ thread_specific() [3/3]

template<typename Item >
mpqc::utility::thread_specific< Item >::thread_specific ( thread_specific< Item > &&  )
default

◆ ~thread_specific()

template<typename Item >
mpqc::utility::thread_specific< Item >::~thread_specific ( )
inline

Member Function Documentation

◆ local()

template<typename Item >
Item& mpqc::utility::thread_specific< Item >::local ( )
inline
Returns
reference to the thread-local Item instance.

◆ operator=() [1/2]

template<typename Item >
thread_specific& mpqc::utility::thread_specific< Item >::operator= ( const thread_specific< Item > &  )
delete

◆ operator=() [2/2]

template<typename Item >
thread_specific& mpqc::utility::thread_specific< Item >::operator= ( thread_specific< Item > &&  )
default

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