- https://github.com/andreasfertig/programming-with-cpp20
- https://github.com/scivision/Cpp23-examples
- https://github.com/uNetworking/uWebSockets
- https://gist.github.com/NickNaso/ff50ecd38becbadafb1c40a5f2a49c87
- https://github.com/hailiang194/NeoSekaiEngine
- https://www.kdab.com/github-actions-for-cpp-and-qt/
- https://github.com/MiKom/QtQuickApp
-
- .clang-format , .clang-tidy , .cmake-format.py , .pre-commit-config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <tuple> | |
| // basic printing | |
| template <typename TupleT, std::size_t... Is> | |
| void printTupleImp(const TupleT& tp, std::index_sequence<Is...>) { | |
| size_t index = 0; | |
| auto printElem = [&index](const auto& x) { | |
| if (index++ > 0) | |
| std::cout << ", "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <tuple> | |
| template <typename T> | |
| void printElem(const T& x) { | |
| std::cout << x << ','; | |
| }; | |
| template <typename TupleT, std::size_t... Is> | |
| void printTupleManual(const TupleT& tp) { |
Duration: 30–60 minutes (not more)
Agenda:
- Quick context (2 min) — “We’re here to decide X. Everyone’s read the RFC”.
- Address open questions (10–15 min) — Go through unresolved comments and open questions from the RFC
- Discussion (15–30 min) — Debate the options, raise new concerns
- Decision (5–10 min) — Make the call
Who should be there:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // The base class | |
| template<class Crtp, class MsgT> | |
| class Receiver { | |
| void receive(MsgT) { | |
| static_cast<Crtp*>(this)->private_ += 1; | |
| } | |
| }; | |
| // The derived class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://vawale.github.io/posts/template_metaprogramming_helpers/ | |
| template<typename... Args> | |
| consteval auto count() { | |
| return sizeof...(Args); | |
| } | |
| template<template <typename T> typename Predicate, typename... Args> | |
| consteval auto count_if() -> size_t { | |
| return (0 + ... + Predicate<Args>{}()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################## | |
| ## ## | |
| ## Simple Universal C/C++ Makefile v2.0 ## | |
| ## ## | |
| ################################################## | |
| ################################################## | |
| ## GLOBAL CONFIGURATION ## | |
| ################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <atomic> | |
| #include <string> | |
| #include <thread> | |
| #include <iostream> | |
| // Global | |
| std::string computation(int a){ | |
| return std::to_string(a); | |
| } |
NewerOlder