FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
ConstRef< T > 模板类 参考

一个适配器。拥有或引用一个不可变对象。 更多...

#include <ref.hpp>

Public 成员函数

 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
 

详细描述

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

一个适配器。拥有或引用一个不可变对象。

在文件 ref.hpp17 行定义.

构造及析构函数说明

◆ ConstRef() [1/5]

template<typename T >
ConstRef ( )
default

◆ ConstRef() [2/5]

template<typename T >
ConstRef ( T t)
inline

在文件 ref.hpp20 行定义.

◆ ConstRef() [3/5]

template<typename T >
ConstRef ( const T * t)
inline

在文件 ref.hpp21 行定义.

◆ ConstRef() [4/5]

template<typename T >
ConstRef ( const ConstRef< T > & )
default

◆ ConstRef() [5/5]

template<typename T >
ConstRef ( ConstRef< T > && )
defaultnoexcept

◆ ~ConstRef()

template<typename T >
~ConstRef ( )
default

成员函数说明

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator()()

template<typename T >
const T & operator() ( ) const
inline

在文件 ref.hpp31 行定义.

◆ operator*()

template<typename T >
const T & operator* ( ) const
inline

在文件 ref.hpp32 行定义.

◆ operator->()

template<typename T >
const T * operator-> ( ) const
inline

在文件 ref.hpp33 行定义.


该类的文档由以下文件生成: