#include "distortos/internal/synchronization/SwapPopQueueFunctor.hpp"
|
T & | value_ |
| reference to object that will be used to return popped value More...
|
|
template<typename T>
class distortos::internal::SwapPopQueueFunctor< T >
SwapPopQueueFunctor is a functor used for popping of data from the queue using swap
- Template Parameters
-
T | is the type of data popped from the queue |
◆ SwapPopQueueFunctor()
SwapPopQueueFunctor's constructor.
- Parameters
-
[out] | value | is a reference to object that will be used to return popped value, its contents are swapped with the value in the queue's storage and destructed when no longer needed |
◆ operator()()
Swaps the element in the queue's storage with the value provided by user and destroys this value when no longer needed.
- Parameters
-
[in,out] | storage | is a pointer to storage with element |
◆ value_
reference to object that will be used to return popped value
The documentation for this class was generated from the following file: