28 #ifndef YSL_INC_Core_ycounter_hpp_
29 #define YSL_INC_Core_ycounter_hpp_ 1
32 #include YFM_YSLib_Core_YShellDefinition
41 template<
class _type,
typename count_t = u32>
101 ResetCount() ynothrow
127 template<
class _type,
typename count_t>
130 template<
class _type,
typename count_t>
DefDeMoveCtor(GMCounter) protected
转移构造。
static DefGetter(ynothrow, count_t, Count, nCount) static DefGetter(ynothrow
复位实例生成计数。
void ResetID() ynothrow
复位实例标识序列号。
static count_t nTotal
实例生成计数和实例计数。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
GMCounter(const GMCounter &) ynothrow
复制构造。
#define yconstfn
指定编译时常量函数。