12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SWAPPOPQUEUEFUNCTOR_HPP_ 13 #define INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SWAPPOPQUEUEFUNCTOR_HPP_ 58 auto& swappedValue = *reinterpret_cast<T*>(storage);
74 #endif // INCLUDE_DISTORTOS_INTERNAL_SYNCHRONIZATION_SWAPPOPQUEUEFUNCTOR_HPP_ T & value_
reference to object that will be used to return popped value
Definition: SwapPopQueueFunctor.hpp:67
Definition: SwapPopQueueFunctor.hpp:32
Top-level namespace of distortos project.
Definition: buttons.hpp:33
QueueFunctor class header.
void swap(IntrusiveForwardListNode &left, IntrusiveForwardListNode &right)
Swaps contents of two nodes.
Definition: IntrusiveForwardList.hpp:172
void operator()(void *const storage) const override
Swaps the element in the queue's storage with the value provided by user and destroys this value when...
Definition: SwapPopQueueFunctor.hpp:56
QueueFunctor is a type-erased interface for functors which execute some action on queue's storage (li...
Definition: QueueFunctor.hpp:31
constexpr SwapPopQueueFunctor(T &value)
SwapPopQueueFunctor's constructor.
Definition: SwapPopQueueFunctor.hpp:43