Provides a unique type that acts like a native type.
More...
#include <cpp_pthreads/attr.h>
template<typename T, unsigned int ID>
struct pthreads::TypeWrap< T, ID >
Provides a unique type that acts like a native type.
- Note
- This is used to inform the compiler of which template to instantiate. For instance GuardSize is typedefed as TypeWrap<std::size_t,0> while StackSize is typedefed as TypeWrap<std::size_t,1>. They both act just like std::size_t but they are in fact distinct types that the compiler can distinguish.
Definition at line 261 of file attr.h.
template<typename T , unsigned int ID>
does nothing
Definition at line 265 of file attr.h.
template<typename T , unsigned int ID>
initialize the stored data to data
Definition at line 269 of file attr.h.
template<typename T , unsigned int ID>
implicit conversion to a const reference of type T
, means that this object can act exactly like a T
object
Definition at line 287 of file attr.h.
template<typename T , unsigned int ID>
implicit conversion to a reference of type T
, means that this object can act exactly like a T
object
Definition at line 281 of file attr.h.
template<typename T , unsigned int ID>
assigns the value to data
Definition at line 274 of file attr.h.
template<typename T , unsigned int ID>
The documentation for this struct was generated from the following file: