02 2020 档案

摘要:constexpr是C++11中新增的关键字,其语义是“常量表达式”,也就是在编译期可求值的表达式。最基础的常量表达式就是字面值或全局变量/函数的地址或sizeof等关键字返回的结果,而其它常量表达式都是由基础表达式通过各种确定的运算得到的。constexpr值可用于enum、switch、数组长度 阅读全文
posted @ 2020-02-20 23:01 Asp1rant 阅读(166) 评论(0) 推荐(0) 编辑
摘要:参考博客:https://blog.csdn.net/qq_41015048/article/details/102558047 std::wstring_convert template < class Codecvt, class Elem = wchar_t, class Wide_alloc 阅读全文
posted @ 2020-02-12 17:25 Asp1rant 阅读(710) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示