代码拉取完成,页面将自动刷新
#pragma once
#ifndef __cplusplus
#error The file requires a C++ compiler.
#endif
// 字符串化
#define STRING(content) #content
// 拼接
#define SPLICE(front, back) front##back
// 弃用
#define DEPRECATED \
[[deprecated("The name for this item is deprecated.")]]
// 替换
#define REPLACEMENT(signature) \
[[deprecated("The name for this item is deprecated. " \
"Instead, use the name: " STRING(signature) ".")]]
// 自定义名称空间
#define ETERFREE_SPACE Eterfree
#define ETERFREE_SPACE_BEGIN namespace ETERFREE_SPACE {
#define ETERFREE_SPACE_END }
#define USING_ETERFREE_SPACE using namespace ETERFREE_SPACE;
ETERFREE_SPACE_BEGIN
//template <typename _Type, const decltype(sizeof 0) _SIZE>
//constexpr auto size(_Type(&_array)[_SIZE]) noexcept
//{
// return sizeof _array / sizeof _array[0];
//}
template <typename _Type, const decltype(sizeof 0) _SIZE>
constexpr auto size(_Type(&_array)[_SIZE]) noexcept
{
return _SIZE;
}
ETERFREE_SPACE_END
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。