![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ModernC++
智渝
生无路而勤为径
展开
-
C++17结构化绑定
https://zh.cppreference.com/w/cpp/language/structured_binding原创 2020-05-28 22:34:39 · 542 阅读 · 0 评论 -
C++11特性:魔法静态变量 magic static
魔法静态变量是C++11的核心语言功能特性,提案:N2660 - Dynamic Initialization and Destruction with Concurrency, 最早在GCC2.3 / Clang2.9 / MSVC19.0等编译器得到支持。 另外可以参考 cppreference:存储类说明符 ...原创 2020-05-02 15:48:57 · 2802 阅读 · 0 评论 -
C++实现string_view
#pragma once #include <ostream> #include <string> #if __cplusplus > 201703L #define ___HAS_CHAR8T 1 #else #define ___HAS_CHAR8T 0 #endif namespace fstd { namespace detail { nam...原创 2019-11-25 22:56:35 · 774 阅读 · 0 评论