FTXUI  5.0.0
C++ functional terminal UI.
ConstRef< T > Class Template Reference

An adapter. Own or reference an immutable object. More...

Public Member Functions

 ConstRef ()=default
 
 ConstRef (T t)
 
 ConstRef (const T *t)
 
ConstRefoperator= (ConstRef &&) noexcept=default
 
 ConstRef (const ConstRef< T > &)=default
 
 ConstRef (ConstRef< T > &&) noexcept=default
 
 ~ConstRef ()=default
 
ConstRef< T > & operator= (const ConstRef< T > &)=default
 
const T & operator() () const
 
const T & operator* () const
 
const T * operator-> () const
 

Detailed Description

template<typename T>
class ftxui::ConstRef< T >

An adapter. Own or reference an immutable object.

Definition at line 17 of file ref.hpp.

Constructor & Destructor Documentation

◆ ConstRef() [1/5]

ConstRef ( )
default

◆ ConstRef() [2/5]

ConstRef ( t)
inline

Definition at line 20 of file ref.hpp.

◆ ConstRef() [3/5]

ConstRef ( const T *  t)
inline

Definition at line 21 of file ref.hpp.

◆ ConstRef() [4/5]

ConstRef ( const ConstRef< T > &  )
default

◆ ConstRef() [5/5]

ConstRef ( ConstRef< T > &&  )
defaultnoexcept

◆ ~ConstRef()

~ConstRef ( )
default

Member Function Documentation

◆ operator=() [1/2]

ConstRef& operator= ( ConstRef< T > &&  )
defaultnoexcept

◆ operator=() [2/2]

ConstRef<T>& operator= ( const ConstRef< T > &  )
default

◆ operator()()

const T& operator() ( ) const
inline

Definition at line 31 of file ref.hpp.

◆ operator*()

const T& operator* ( ) const
inline

Definition at line 32 of file ref.hpp.

◆ operator->()

const T* operator-> ( ) const
inline

Definition at line 33 of file ref.hpp.


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