Goals of C++ 23

Goals of C++ 23

Source: Zhihu, Author: Nanshan Yanyu Zhujiang TideLink: https://zhuanlan.zhihu.com/p/107360459 C++20 is the largest version ever, akin to constructing a beautiful skyscraper, but due to time constraints, the interior decoration is not yet complete, which feels like this: The primary task of C++23 is, of course, to continue the interior decoration of the building, so C++23 should … Read more

In-Depth Analysis of std::out_ptr and std::inout_ptr in C++23

In-Depth Analysis of std::out_ptr and std::inout_ptr in C++23

C++23 introduces two new standard library function templates<span><span>std::out_ptr</span></span> and <span><span>std::inout_ptr</span></span>, along with their corresponding types <span><span>std::out_ptr_t</span></span> and <span><span>std::inout_ptr_t</span></span>, aimed at enhancing the readability and safety of code interacting with C-style APIs. This article will provide a technical analysis of the design motivations, functional details, usage scenarios, and implementation mechanisms of these two new features, ensuring … Read more

The Right Way to Open ‘C++ Journey’

The Right Way to Open 'C++ Journey'

Be brief when giving instructions! ——Cicero Modern C++ feels like a new language. I mean, compared to C++98 or C++11, I can express my ideas more clearly, simply, and directly now. Not only that, programs generated by modern C++ are also easier for compilers to check and run faster. ‘C++ Journey’ showcases the overview of … Read more