C++20: An (Almost) Complete OverviewaString; }; Data d { .aString = "Hello" };48 Spaceship Operator <=> Official name: three-way comparison operator Three-way: comparing 2 objects and then comparing result with 0 (a <=> b) < 0 // Non-defaulted (then you also need to write an operator==) Custom implementation Choice of three return types: strong_ordering, partial_ordering, or weak_ordering50 Spaceship Operator <=> Example: "Hearts"; case Spades: return "Spades"; } }75 Text Formatting (std::format) Currently, two ways to format text in C++: I/O streams Safe and extensible Hard to read, hard to localize 0 码力 | 85 页 | 512.18 KB | 6 月前3
Finding Bugs using Path-Sensitive Static Analysis• Path-sensitive analysis is powerful, but power comes at a cost • We are actively looking into ways to make analysis more precise • There are a large set of checks in MSVC • Making intent explicit0 码力 | 35 页 | 14.13 MB | 6 月前3
NativeScript 101Debugger Console Resources Network Elements Memory Profiling Timeline/CPU Prof. Anything Else? Two easy ways to use NativeScript 1) 2) NativeScript Sidekick NativeScript CLI Command Line Interface (CLI)0 码力 | 90 页 | 40.11 MB | 1 年前3
Making Libraries Consumable for Non-C++ DevelopersSys_Done(hnd); hnd This is only one possible sequence.Memory model – Non-Reference Counted Common ways of facilitating interop scenarios with a Garbage Collector (GC). 1. Handles – Level of indirection0 码力 | 29 页 | 1.21 MB | 6 月前3
Working with Asynchrony Generically: A Tour of C++ Executors}) ); auto [a, b, c] = std::this_thread::sync_wait( std::move(work) ).value(); } Launch three tasks to execute concurrently on a custom execution context libunifex: https://github.c result anymore. Mind stopping early, please?” stop source stop token75 CANCELLATION IS A THREE-WAY HANDSHAKE OpState Caller Receiver “Please stop.” “I’ve stopped.”76 SENDERS PASS STOP TOKENS0 码力 | 121 页 | 7.73 MB | 6 月前3
No Silver Bullet – Essence and Accident in Software Engineeringhinders communication among mindsPast Breakthroughs Solved Accidental Difficulties“If we examine the three steps in software technology that have been most fruitful in the past, we discover that each attacked0 码力 | 35 页 | 1.43 MB | 6 月前3
共 6 条
- 1













