ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::count_able< T > 模板结构体 参考
类 elc::defs::base::count_able< T > 继承关系图:
[图例]
elc::defs::base::count_able< T > 的协作图:
[图例]

Public 成员函数

 count_able () noexcept
 
 ~count_able () noexcept
 

友元

size_t the_number_of (type_info_t< T >) noexcept
 

额外继承的成员函数

- Protected 成员函数 继承自 elc::defs::base::attribute< T, count_able< T > >
constexpr T * get_handle () noexcept
 
constexpr const T * get_handle () const noexcept
 

详细描述

template<class T>
struct elc::defs::base::count_able< T >

在文件 all_defs.cpp12481 行定义.

构造及析构函数说明

◆ count_able()

template<class T >
elc::defs::base::count_able< T >::count_able ( )
inlinenoexcept

在文件 all_defs.cpp12486 行定义.

12486{_number++;}

◆ ~count_able()

template<class T >
elc::defs::base::count_able< T >::~count_able ( )
inlinenoexcept

在文件 all_defs.cpp12487 行定义.

12487{_number--;}

友元及相关函数文档

◆ the_number_of

template<class T >
size_t the_number_of ( type_info_t< T >  )
friend

在文件 all_defs.cpp12490 行定义.

12490 {
12491 if constexpr(type_info<T>.not_has_attribute(count_able))
12492 template_error("hey.");
12493 return count_able<T>::_number;
12494}
#define template_error(reason)
Definition all_defs.cpp:559
constexpr T down_cast(U a) noexcept
向下转型至

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