vault backup: 2022-12-01 00:08:18

This commit is contained in:
2022-12-01 00:08:18 +08:00
parent c14c5a76bc
commit 04277ee9ac

View File

@@ -1,7 +1,16 @@
1. Use std::shared_ptr & std::unique_ptr 1. Use std::shared_ptr & std::unique_ptr & std::weak_ptr
2. Use std::array or std::vector 2. Use std::array or std::vector
3. Use structured binding & std::tuple 3. Use structured binding & std::tuple
4. Use for (auto& elem : collector) 4. Use for (auto& elem : collector)
5. Use std::format 5. Use std::format
6. Use std::optional 6. Use std::optional
7. 7. Use auto for return type
8. Use auto in variable declaration
9. Use `using` to replace `#define`
10. Use "Lambda expression" and std::function
11. `[[deprecated]]` attribute
12. Maybe...std::any?
13. And more, constexpr, concept,
## Reference
- [AnthonyCalandra/modern-cpp-features: A cheatsheet of modern C++ language and library features.](https://github.com/AnthonyCalandra/modern-cpp-features)