会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WYFC4
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2023年7月1日
C-中的编译期反射
摘要: title: C++中的编译期反射 date: 2022-11-17 23:15:28 tags: # C++的编译期反射 我们可以利用`__PRETTY_FUNCTION__`这个宏获取当前函数的签名。 比如以下代码: ```cpp #include #include template std::
阅读全文
posted @ 2023-07-01 19:45 WYFC4
阅读(96)
评论(0)
推荐(0)
2022年2月7日
模板元编程入门:顺序分支
摘要: 顺序代码的编写方式 类型转换示例 为输入类型去掉引用并添加const #include<iostream> #include<type_traits> struct fun_ { using RemRef = typename std::remove_reference<T>::type; //us
阅读全文
posted @ 2022-02-07 09:48 WYFC4
阅读(53)
评论(0)
推荐(0)
上一页
1
2
公告