ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::core::void_t结构体 参考final
类 elc::defs::core::void_t 继承关系图:
[图例]
elc::defs::core::void_t 的协作图:
[图例]

Public 成员函数

virtual base_type_info_t get_type_info () const noexcept override
 
virtual constexpr operator hash_t () const noexcept override
 
virtual constexpr operator logical_bool () const noexcept override
 
- Public 成员函数 继承自 elc::defs::core::base_constexpr_t
 base_constexpr_t () noexcept
 
virtual constexpr ~base_constexpr_t () noexcept override=default
 
virtual value arec (const value) noexcept override
 
virtual void clear () noexcept override final
 
virtual void be_replace_as (ptr) noexcept override
 

Protected 成员函数

virtual constexpr size_t equal_level () const noexcept override
 
virtual constexpr size_t eq_level () const noexcept override
 
virtual logical_bool was_equal_with (const_ptr a) const noexcept override
 

额外继承的成员函数

详细描述

在文件 all_defs.cpp32978 行定义.

成员函数说明

◆ eq_level()

virtual constexpr size_t elc::defs::core::void_t::eq_level ( ) const
inlineconstexproverrideprotectedvirtualnoexcept

重载 elc::defs::core::base_constexpr_t .

在文件 all_defs.cpp32982 行定义.

32982{return max(type_info<size_t>);}
constexpr T down_cast(U a) noexcept
向下转型至
constexpr struct elc::defs::base::max_t max

◆ equal_level()

virtual constexpr size_t elc::defs::core::void_t::equal_level ( ) const
inlineconstexproverrideprotectedvirtualnoexcept

重载 elc::defs::core::base_constexpr_t .

在文件 all_defs.cpp32981 行定义.

32981{return max(type_info<size_t>);}

◆ get_type_info()

virtual base_type_info_t elc::defs::core::void_t::get_type_info ( ) const
inlineoverridevirtualnoexcept

重载 elc::defs::core::base_constexpr_t .

在文件 all_defs.cpp32979 行定义.

32979{return type_info<void_t>;}

◆ operator hash_t()

virtual constexpr elc::defs::core::void_t::operator hash_t ( ) const
inlineexplicitconstexproverridevirtualnoexcept

重载 elc::defs::core::node_like .

在文件 all_defs.cpp32991 行定义.

32991{return hash(nothing);}
#define hash
#define nothing
Definition all_defs.cpp:647

◆ operator logical_bool()

virtual constexpr elc::defs::core::void_t::operator logical_bool ( ) const
inlineexplicitconstexproverridevirtualnoexcept

重载 elc::defs::core::node_like .

在文件 all_defs.cpp32992 行定义.

32992{return neither;}//void 应当不真不假
constexpr logical_bool neither

◆ was_equal_with()

virtual logical_bool elc::defs::core::void_t::was_equal_with ( const_ptr  a) const
inlineoverrideprotectedvirtualnoexcept

实现了 elc::defs::core::node_like.

在文件 all_defs.cpp32983 行定义.

32983 {
32984 if(this==a)
32985 return either;//当void是void时,void不是void
32986 else
32987 return neither;//当a不是void时,void是a
32988 }
constexpr logical_bool either

该结构体的文档由以下文件生成: