ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::maybe_fail_reference< T > 模板类 参考

Public 成员函数

constexpr maybe_fail_reference (T &a) noexcept
 
constexpr maybe_fail_reference (const maybe_fail_reference &)=default
 
constexpr maybe_fail_reference (note::fail_t) noexcept
 
bool not_fail () noexcept
 
bool fail () noexcept
 
T & get_ref () noexcept
 

详细描述

template<typename T>
class elc::defs::base::maybe_fail_reference< T >

在文件 all_defs.cpp12626 行定义.

构造及析构函数说明

◆ maybe_fail_reference() [1/3]

template<typename T >
constexpr elc::defs::base::maybe_fail_reference< T >::maybe_fail_reference ( T &  a)
inlineconstexprnoexcept

在文件 all_defs.cpp12629 行定义.

12629:_ref_to(&a){}
constexpr T down_cast(U a) noexcept
向下转型至

◆ maybe_fail_reference() [2/3]

template<typename T >
constexpr elc::defs::base::maybe_fail_reference< T >::maybe_fail_reference ( const maybe_fail_reference< T > &  )
constexprdefault

◆ maybe_fail_reference() [3/3]

template<typename T >
constexpr elc::defs::base::maybe_fail_reference< T >::maybe_fail_reference ( note::fail_t  )
inlineconstexprnoexcept

在文件 all_defs.cpp12631 行定义.

12631:_ref_to(nullptr){}

成员函数说明

◆ fail()

template<typename T >
bool elc::defs::base::maybe_fail_reference< T >::fail ( )
inlinenoexcept

在文件 all_defs.cpp12634 行定义.

12634{return!not_fail();}

◆ get_ref()

template<typename T >
T & elc::defs::base::maybe_fail_reference< T >::get_ref ( )
inlinenoexcept

在文件 all_defs.cpp12635 行定义.

12635{return*_ref_to;}

◆ not_fail()

template<typename T >
bool elc::defs::base::maybe_fail_reference< T >::not_fail ( )
inlinenoexcept

在文件 all_defs.cpp12633 行定义.

12633{return _ref_to;}

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