C++ Library Extensions 2022.12.09
To help learn modern C++ programming
thread_safe_stack< ElementType > Class Template Reference

Public Member Functions

 thread_safe_stack ()
 
template<typename... Types>
void push (Types &&... args)
 
ElementType pop ()
 
bool empty ()
 

Detailed Description

template<typename ElementType>
class thread_safe_stack< ElementType >

Definition at line 124 of file 031-modern_cpp.cpp.

Constructor & Destructor Documentation

◆ thread_safe_stack()

template<typename ElementType >
thread_safe_stack< ElementType >::thread_safe_stack ( )
inline

Definition at line 131 of file 031-modern_cpp.cpp.

Member Function Documentation

◆ empty()

template<typename ElementType >
bool thread_safe_stack< ElementType >::empty ( )
inline

Definition at line 191 of file 031-modern_cpp.cpp.

◆ pop()

template<typename ElementType >
ElementType thread_safe_stack< ElementType >::pop ( )
inline

Definition at line 152 of file 031-modern_cpp.cpp.

Here is the caller graph for this function:

◆ push()

template<typename ElementType >
template<typename... Types>
void thread_safe_stack< ElementType >::push ( Types &&...  args)
inline

Definition at line 141 of file 031-modern_cpp.cpp.

Here is the caller graph for this function:

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