distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
estd::ReferenceHolder< T > Class Template Reference

ReferenceHolder template class is a ROMable holder of a reference. More...

#include <ReferenceHolder.hpp>

Public Member Functions

constexpr ReferenceHolder (T &reference) noexcept
 ReferenceHolder constructor. More...
 
constexpr operator T & () const noexcept
 
constexpr T & get () const noexcept
 

Private Attributes

T & reference_
 reference held by the object More...
 

Detailed Description

template<typename T>
class estd::ReferenceHolder< T >

ReferenceHolder template class is a ROMable holder of a reference.

Template Parameters
Tis the type of reference held in the object

Constructor & Destructor Documentation

◆ ReferenceHolder()

template<typename T >
constexpr estd::ReferenceHolder< T >::ReferenceHolder ( T &  reference)
inlineexplicitnoexcept

ReferenceHolder constructor.

Parameters
[in]referenceis a reference that will be held by the object

Member Function Documentation

◆ get()

template<typename T >
constexpr T& estd::ReferenceHolder< T >::get ( ) const
inlinenoexcept
Returns
reference held by the object

◆ operator T &()

template<typename T >
constexpr estd::ReferenceHolder< T >::operator T& ( ) const
inlinenoexcept
Returns
reference held by the object

Member Data Documentation

◆ reference_

template<typename T >
T& estd::ReferenceHolder< T >::reference_
private

reference held by the object


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