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 (const ConstRef< T > &)=default
 
 ConstRef (ConstRef< T > &&)=default
 
 ConstRef (T t)
 
 ConstRef (const T *t)
 
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 15 of file ref.hpp.

Constructor & Destructor Documentation

◆ ConstRef() [1/5]

ConstRef ( )
default

◆ ConstRef() [2/5]

ConstRef ( const ConstRef< T > &  )
default

◆ ConstRef() [3/5]

ConstRef ( ConstRef< T > &&  )
default

◆ ConstRef() [4/5]

ConstRef ( t)
inline

Definition at line 20 of file ref.hpp.

◆ ConstRef() [5/5]

ConstRef ( const T *  t)
inline

Definition at line 21 of file ref.hpp.

Member Function Documentation

◆ operator=()

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

◆ operator()()

const T & operator() ( ) const
inline

Definition at line 27 of file ref.hpp.

◆ operator*()

const T & operator* ( ) const
inline

Definition at line 28 of file ref.hpp.

◆ operator->()

const T * operator-> ( ) const
inline

Definition at line 29 of file ref.hpp.


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