C++23: An Overview of Almost All New and Updated Featuresmake std::format() easier Example: std::string name { "CppCon" }; // Old-style cout/format() pattern std::cout << std::format("Hello {} 2023!\n", name); // C++23 print() std::print("Hello {} 2023 te() E.g.: std::string GeneratePattern(const std::string& pattern, size_t count) { std::string result; result.reserve(pattern.size() * count); for (size_t i = 0; i < count; i++) { 'count' times result.append(pattern); } return result; }59 basic_string::resize_and_overwrite() E.g.: std::string GeneratePattern(const std::string& pattern, size_t count) { std::string0 码力 | 105 页 | 759.96 KB | 6 月前3
Performance Lets dive into Performance issuesLoops • Beware of function and memory allocations inside of loops. You see this as a standard pattern. function loopFunction () { var val = 0; for (var i=0;i<100000;i++) { doSomething(0 码力 | 15 页 | 1.71 MB | 1 年前3
Finding Bugs using Path-Sensitive Static AnalysisRepresentations of C++ – Gabriel Dos Reis (online 27th) • Extending and Simplifying C++: Thoughts on pattern Matching using `is` and `as – Herb Sutter Wednesday 27th • What's New in Visual Studio: 64-bit0 码力 | 35 页 | 14.13 MB | 6 月前3
NativeScript 101nativescript JavaScript All The Things JavaScript Code Behind o Vanilla JavaScript o Built-in MVVM Pattern o Angular Support o TypeScript Support o Vue Support (Community-Driven) o Preact Support (Community-Driven)0 码力 | 90 页 | 40.11 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - Zeno 中的现代 C++ 最佳实践 Derived 的指针才能调用 Derived 的拷贝 构造函数 Derived(Derived const &) 。 CRTP (Curiously Recurring Template Pattern / 奇异递归模板模 式 ) • 形如 struct Derived : Base{}; • 基类模板参数包含派生类型的,这种就是传说中的 CRTP 。包含派生类型是为了能调用派 0 码力 | 54 页 | 3.94 MB | 1 年前3
C++20's Representations of C++ – Gabriel Dos Reis (online 27th) • Extending and Simplifying C++: Thoughts on pattern Matching using `is` and `as – Herb Sutter Wednesday 27th • What's New in Visual Studio: 64-bit0 码力 | 55 页 | 8.67 MB | 6 月前3
共 6 条
- 1













