|
You are here |
hackingcpp.com | ||
| | | | |
www.cppstories.com
|
|
| | | | | In C++11, we got a handy way to initialize various containers. Rather than using push_back() or insert() several times, you can leverage a single constructor by taking an initializer list. For example, with a vector of strings, you can write: std::vector vec { "abc", "xyz", "***" }; We can also write expressions like: for (auto x : {1, 2, 3}) cout << x << ", "; The above code samples use std::initializer_list and (some compiler support) to hold the values and pass them around. Let's understa...... | |
| | | | |
www.foonathan.net
|
|
| | | | | When should you write a destructor? When a copy constructor? Does it make sense to have assignment only? Quick guidelines: rule of zero, rule of three, rule of five, and everything else. | |
| | | | |
herbsutter.com
|
|
| | | | | Since the year-end mini-update, progress has continued on cppfront. (If you don't know what this personal project is, please see theCppCon 2022 talk on YouTube.) This update covers Acknowledgments, and highlights of what's new in the compiler and language since last time, including: simple, mathematically safe, and efficient chained comparisons named break and continue "simple... | |
| | | | |
renato.athaydes.com
|
|
| | | [AI summary] The blog post discusses running WebAssembly (WASM) on the JVM using the asmble compiler and Gradle plugin, highlighting its potential and challenges compared to traditional methods like Emscripten. | ||