distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::MoveConstructQueueFunctor< T > Class Template Reference

#include "distortos/internal/synchronization/MoveConstructQueueFunctor.hpp"

Inheritance diagram for distortos::internal::MoveConstructQueueFunctor< T >:
[legend]
Collaboration diagram for distortos::internal::MoveConstructQueueFunctor< T >:
[legend]

Public Member Functions

constexpr MoveConstructQueueFunctor (T &&value)
 MoveConstructQueueFunctor's constructor. More...
 
void operator() (void *const storage) const override
 Move-constructs the element in the queue's storage. More...
 

Private Attributes

T && value_
 rvalue reference to object that will be used as argument of move constructor More...
 

Detailed Description

template<typename T>
class distortos::internal::MoveConstructQueueFunctor< T >

MoveConstructQueueFunctor is a functor used for pushing of data to the queue using move-construction

Template Parameters
Tis the type of data pushed to the queue

Constructor & Destructor Documentation

◆ MoveConstructQueueFunctor()

template<typename T >
constexpr distortos::internal::MoveConstructQueueFunctor< T >::MoveConstructQueueFunctor ( T &&  value)
inlineexplicit

MoveConstructQueueFunctor's constructor.

Parameters
[in]valueis a rvalue reference to object that will be used as argument of move constructor

Member Function Documentation

◆ operator()()

template<typename T >
void distortos::internal::MoveConstructQueueFunctor< T >::operator() ( void *const  storage) const
inlineoverride

Move-constructs the element in the queue's storage.

Parameters
[in,out]storageis a pointer to storage for element

Member Data Documentation

◆ value_

template<typename T >
T&& distortos::internal::MoveConstructQueueFunctor< T >::value_
private

rvalue reference to object that will be used as argument of move constructor


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