From d0a50ffaefee735edebedf9e60eb25ac845d92a9 Mon Sep 17 00:00:00 2001 From: GitHub bot Date: Sun, 25 Feb 2024 18:58:15 +0000 Subject: [PATCH] [no ci] Update RSS feed --- feed.xml | 465 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 279 insertions(+), 186 deletions(-) diff --git a/feed.xml b/feed.xml index af0c2ba..6d71cc1 100644 --- a/feed.xml +++ b/feed.xml @@ -7,10 +7,103 @@ en Your weekly dose of modern C++ challenge (Release every Sunday). + 368 - Did you know that C++23 added Explicit lifetime management (1/N)? + https://github.com/tip-of-the-week/cpp/blob/master/tips/368.md + https://github.com/tip-of-the-week/cpp/blob/master/tips/368.md + Sun, 25 Feb 2024 18:58:12 GMT + +

Info + +
Example +
std::array<std::byte, 1024> data{};
+std::fill(std::begin(data), std::end(data), std::byte{42});
+
+struct foo {
+  std::uint8_t x;
+  std::uint8_t y;
+};
+
+auto* f = std::start_lifetime_as<foo>(std::data(data));
+std::cout << f->x << f->y; // prints 4242
+
+ +
+

https://godbolt.org/z/4ozs8hTr5

+
+
Puzzle +
    +
  • **Can you implement start_lifetime_as?
  • +
+
template<class T> auto start_lifetime_as(void* p) noexcept -> T*; // TODO 
+
+int main() {
+  using namespace boost::ut;
+
+  "start_lifetime_as"_test = [] {
+    std::array<std::byte, 1024> data{};
+    std::fill(std::begin(data), std::end(data), std::byte{42});
+
+    struct foo {
+      std::uint8_t x;
+      std::uint8_t y;
+    };
+
+    auto* f = start_lifetime_as<foo>(std::data(data));
+    expect(42_i == f->x);
+    expect(42_i == f->y);
+  };
+}
+
+ +
+

https://godbolt.org/z/fqsEz8YGr

+
+

+
Solutions +
template<class T> auto start_lifetime_as(void* p) noexcept -> T* {
+  const auto bytes = new (p) std::byte[sizeof(T)];
+  const auto ptr = reinterpret_cast<T*>(bytes);
+  (void*)ptr;
+  return ptr;
+}
+
+int main() {
+  using namespace boost::ut;
+
+  "start_lifetime_as"_test = [] {
+    std::array<std::byte, 1024> data{};
+    std::fill(std::begin(data), std::end(data), std::byte{42});
+
+    struct foo {
+      std::uint8_t x;
+      std::uint8_t y;
+    };
+
+    auto* f = start_lifetime_as<foo>(std::data(data));
+    expect(42_i == f->x);
+    expect(42_i == f->y);
+  };
+}
+
+ +
+

https://godbolt.org/z/W18nWPbE3

+
+

+]]>
+
+ 367 - Did you know about C++26 simd proposal (1/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/367.md https://github.com/tip-of-the-week/cpp/blob/master/tips/367.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

Info
    @@ -56,7 +149,7 @@ int main() { 366 - Did you know about C++26 static reflection proposal (6/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/366.md https://github.com/tip-of-the-week/cpp/blob/master/tips/366.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

    Info
      @@ -213,7 +306,7 @@ int main() { 365 - Did you know about C++26 static reflection proposal (5/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/365.md https://github.com/tip-of-the-week/cpp/blob/master/tips/365.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

      Info
        @@ -293,7 +386,7 @@ static_assert(requires(packed p) { p.i; p.s; p.b; }); 364 - Did you know about C++26 static reflection proposal (4/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/364.md https://github.com/tip-of-the-week/cpp/blob/master/tips/364.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

        Info
          @@ -457,7 +550,7 @@ class soa_vector : impl::soa_t<T> { 363 - Did you know about C++26 static reflection proposal (3/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/363.md https://github.com/tip-of-the-week/cpp/blob/master/tips/363.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

          Info
            @@ -584,7 +677,7 @@ static_assert(std::array{desc{1u, 0u, 1u}, desc{4u, 4u, 4u}, desc{4u, 8u, 4u}} = 362 - Did you know about C++26 static reflection proposal (2/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/362.md https://github.com/tip-of-the-week/cpp/blob/master/tips/362.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

            Info
              @@ -662,7 +755,7 @@ template<auto N, class T> 361 - Did you know about C++26 static reflection proposal (1/N)? https://github.com/tip-of-the-week/cpp/blob/master/tips/361.md https://github.com/tip-of-the-week/cpp/blob/master/tips/361.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

              Info
                @@ -727,7 +820,7 @@ static_assert(enum_to_string(Color(42)) == "<unnamed>"); 360 - Did you know that C++23 added spanstream - A strstream replacement using span<charT> as buffer? https://github.com/tip-of-the-week/cpp/blob/master/tips/360.md https://github.com/tip-of-the-week/cpp/blob/master/tips/360.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                Info
                  @@ -798,7 +891,7 @@ int main() { 359 - Did you know that C++20 `source_location` can be used to get the member names? https://github.com/tip-of-the-week/cpp/blob/master/tips/359.md https://github.com/tip-of-the-week/cpp/blob/master/tips/359.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                  Info
                    @@ -1031,7 +1124,7 @@ static_assert("b" == std::get<1>(t).name and 87 == std::get<1 358 - Did you know that C++26 added `Pack Indexing`? https://github.com/tip-of-the-week/cpp/blob/master/tips/358.md https://github.com/tip-of-the-week/cpp/blob/master/tips/358.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                    Info
                      @@ -1110,7 +1203,7 @@ consteval auto last(auto... ts) { return (ts, ...); } 357 - Did you know that C++23 added standard support for `flat_map`? https://github.com/tip-of-the-week/cpp/blob/master/tips/357.md https://github.com/tip-of-the-week/cpp/blob/master/tips/357.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                      Info
                        @@ -1228,7 +1321,7 @@ void UnorderedMapLookup(benchmark::State& state) { 356 - Did you know that C++20's `no_unique_address` can be used to find unique types? https://github.com/tip-of-the-week/cpp/blob/master/tips/356.md https://github.com/tip-of-the-week/cpp/blob/master/tips/356.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                        Info
                          @@ -1324,7 +1417,7 @@ constexpr auto is_unique = sizeof(S<Ts...>) == 1; 355 - Did you know that C++20 added constinit keyword? https://github.com/tip-of-the-week/cpp/blob/master/tips/355.md https://github.com/tip-of-the-week/cpp/blob/master/tips/355.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                          Info
                            @@ -1368,7 +1461,7 @@ auto fn() { return var; } 354 - Did you know that C++23 added range `string_view` constructor? https://github.com/tip-of-the-week/cpp/blob/master/tips/354.md https://github.com/tip-of-the-week/cpp/blob/master/tips/354.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                            Info
                              @@ -1428,7 +1521,7 @@ struct buffer { 353 - Did you know that the underlying visit implementation of std::visit has changed since GCC12+, Clang15+? https://github.com/tip-of-the-week/cpp/blob/master/tips/353.md https://github.com/tip-of-the-week/cpp/blob/master/tips/353.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                              Info
                                @@ -1538,7 +1631,7 @@ constexpr decltype(auto) visit(F&& f, V&& v) { 352 - Did you know about C++26 proposal - `variadic friends`? https://github.com/tip-of-the-week/cpp/blob/master/tips/352.md https://github.com/tip-of-the-week/cpp/blob/master/tips/352.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                Info
                                  @@ -1635,7 +1728,7 @@ class MyClass { 351 - Did you know about C++26 proposal - `inplace_vector`? https://github.com/tip-of-the-week/cpp/blob/master/tips/351.md https://github.com/tip-of-the-week/cpp/blob/master/tips/351.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                  Info
                                    @@ -1752,7 +1845,7 @@ class inplace_vector { 350 - Did you know about C++26 proposal - Aggregates are named tuples? https://github.com/tip-of-the-week/cpp/blob/master/tips/350.md https://github.com/tip-of-the-week/cpp/blob/master/tips/350.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                    Info
                                      @@ -1827,7 +1920,7 @@ constexpr auto get(DoesNotHaveGetConcept auto s) { 349 - Did you know that C++26 added new SI prefixes? https://github.com/tip-of-the-week/cpp/blob/master/tips/349.md https://github.com/tip-of-the-week/cpp/blob/master/tips/349.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                      Info
                                        @@ -1887,7 +1980,7 @@ static_assert(std::femto{} * std::exa{} == std::kilo{}); 348 - Did you know that C++26 changed arithmetic overloads of std::to_string and std::to_wstring to use std::format? https://github.com/tip-of-the-week/cpp/blob/master/tips/348.md https://github.com/tip-of-the-week/cpp/blob/master/tips/348.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                        Info
                                          @@ -1961,7 +2054,7 @@ static_assert(std::femto{} * std::exa{} == std::kilo{}); 347 - Did you know that C++26 added more constexpr for <cmath> and <complex>? https://github.com/tip-of-the-week/cpp/blob/master/tips/347.md https://github.com/tip-of-the-week/cpp/blob/master/tips/347.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                          Info

                                          *** Did you know that C++26 added more constexpr for and ?

                                          @@ -2028,7 +2121,7 @@ static_assert(123 == 123_number); 346 - Did you know that C++26 added testing for success or failure of <charconv> functions? https://github.com/tip-of-the-week/cpp/blob/master/tips/346.md https://github.com/tip-of-the-week/cpp/blob/master/tips/346.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                          Info
                                            @@ -2096,7 +2189,7 @@ static_assert(!fmt_error); 345 - Did you know that C++26 allows constexpr cast from `void*`? https://github.com/tip-of-the-week/cpp/blob/master/tips/345.md https://github.com/tip-of-the-week/cpp/blob/master/tips/345.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                            Info
                                              @@ -2182,7 +2275,7 @@ int main() { 344 - Did you know that C++26 added `Member visit`? https://github.com/tip-of-the-week/cpp/blob/master/tips/344.md https://github.com/tip-of-the-week/cpp/blob/master/tips/344.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                              Info
                                                @@ -2256,7 +2349,7 @@ struct variant : std::variant<Ts...> { 343 - Did you know that C++26 std.format added formatting pointers ability? https://github.com/tip-of-the-week/cpp/blob/master/tips/343.md https://github.com/tip-of-the-week/cpp/blob/master/tips/343.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                Info
                                                  @@ -2321,7 +2414,7 @@ struct variant : std::variant<Ts...> { 342 - Did you know that C++26 added 'A nice placeholder with no name'? https://github.com/tip-of-the-week/cpp/blob/master/tips/342.md https://github.com/tip-of-the-week/cpp/blob/master/tips/342.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                  Info
                                                    @@ -2397,7 +2490,7 @@ template<auto _> auto nttp() {} 341 - Did you know that C++26 added user-generated static_assert messages? https://github.com/tip-of-the-week/cpp/blob/master/tips/341.md https://github.com/tip-of-the-week/cpp/blob/master/tips/341.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                    Info
                                                      @@ -2454,7 +2547,7 @@ constexpr auto format(const string<Cs...> fmt, auto&&... args) { 340 - Did you know that C++26 added bind front and back to NTTP callables? https://github.com/tip-of-the-week/cpp/blob/master/tips/340.md https://github.com/tip-of-the-week/cpp/blob/master/tips/340.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                      Info
                                                        @@ -2512,7 +2605,7 @@ int main() { 339 - Did you know that C++26 added `@, $, and `` to the basic character set? https://github.com/tip-of-the-week/cpp/blob/master/tips/339.md https://github.com/tip-of-the-week/cpp/blob/master/tips/339.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                        Info
                                                          @@ -2552,7 +2645,7 @@ auto id = @kris; 338 - Did you know about C++20 `std::next_permutation` algorithm? https://github.com/tip-of-the-week/cpp/blob/master/tips/338.md https://github.com/tip-of-the-week/cpp/blob/master/tips/338.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                          Info
                                                            @@ -2737,7 +2830,7 @@ constexpr auto invoke(auto fn, auto... ts) -> R { 337 - Did you know that run-time dispatching over type-list can be implemented many different ways? https://github.com/tip-of-the-week/cpp/blob/master/tips/337.md https://github.com/tip-of-the-week/cpp/blob/master/tips/337.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                            Info
                                                              @@ -2860,7 +2953,7 @@ constexpr auto dispatch(const int id, const T& data, const TExpr& expr) 336 - Did you know about `gnu::vector_size` extension? https://github.com/tip-of-the-week/cpp/blob/master/tips/336.md https://github.com/tip-of-the-week/cpp/blob/master/tips/336.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                              Info
                                                                @@ -2959,7 +3052,7 @@ constexpr auto matmul(v16qi (&A)[N], v16qi (&B)[N], std::int32_t (&C 335 - Did you know that you can simplify `boost.mp11` API with DSL*?* https://github.com/tip-of-the-week/cpp/blob/master/tips/335.md https://github.com/tip-of-the-week/cpp/blob/master/tips/335.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                Info
                                                                  @@ -3153,7 +3246,7 @@ static_assert(unique_event_ptrs<foo1, bar1, foo1, foo1, bar1, bar2> == 334 - Did you know that C++23 added std::invoke_r? https://github.com/tip-of-the-week/cpp/blob/master/tips/334.md https://github.com/tip-of-the-week/cpp/blob/master/tips/334.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                  Info
                                                                    @@ -3224,7 +3317,7 @@ static_assert(typeid(unsigned long long) == typeid(call(1ll, 2ull, 3l))); 333 - Did you know that C++20 added std::span? https://github.com/tip-of-the-week/cpp/blob/master/tips/333.md https://github.com/tip-of-the-week/cpp/blob/master/tips/333.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                    Info
                                                                      @@ -3301,7 +3394,7 @@ static_assert(15 == sum(s)); 332 - Did you know that in C++ you can generate jump tables at compile-time? https://github.com/tip-of-the-week/cpp/blob/master/tips/332.md https://github.com/tip-of-the-week/cpp/blob/master/tips/332.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                      Info
                                                                        @@ -3367,7 +3460,7 @@ constexpr auto dispatch(auto n) -> int { 331 - Did you about C++17 std::index_sequence, std::make_index_sequence? https://github.com/tip-of-the-week/cpp/blob/master/tips/331.md https://github.com/tip-of-the-week/cpp/blob/master/tips/331.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                        Info
                                                                          @@ -3498,7 +3591,7 @@ constexpr const auto matrix = 330 - Did you know that C++17 added std::pmr::polymorphic_allocator? https://github.com/tip-of-the-week/cpp/blob/master/tips/330.md https://github.com/tip-of-the-week/cpp/blob/master/tips/330.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                          Info
                                                                            @@ -3665,7 +3758,7 @@ int main() { 329 - Did you know about C++ allows to pass Pointer To Member Function via template parameter? https://github.com/tip-of-the-week/cpp/blob/master/tips/329.md https://github.com/tip-of-the-week/cpp/blob/master/tips/329.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                            Info
                                                                              @@ -3826,7 +3919,7 @@ int main() { 328 - Did you know that C++23 extended floating-point types? https://github.com/tip-of-the-week/cpp/blob/master/tips/328.md https://github.com/tip-of-the-week/cpp/blob/master/tips/328.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                              Info
                                                                                @@ -3975,7 +4068,7 @@ auto min_max = [](auto t) { 327 - Did you know that C++17 added `std::forward_as_tuple` and `std::make_from_tuple` and what’s the difference between them? https://github.com/tip-of-the-week/cpp/blob/master/tips/327.md https://github.com/tip-of-the-week/cpp/blob/master/tips/327.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                Info
                                                                                  @@ -4158,7 +4251,7 @@ constexpr auto forward_as_tuple(Ts &&...vs) { 326 - Did you know that C++23 deprecated std::aligned_storage and std::aligned_union? https://github.com/tip-of-the-week/cpp/blob/master/tips/326.md https://github.com/tip-of-the-week/cpp/blob/master/tips/326.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                  Info
                                                                                    @@ -4411,7 +4504,7 @@ class container { 325 - Did you know about `typename erasure` technique (via Strong/Opaque Typedefs) in C++? https://github.com/tip-of-the-week/cpp/blob/master/tips/325.md https://github.com/tip-of-the-week/cpp/blob/master/tips/325.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                    Info
                                                                                      @@ -4639,7 +4732,7 @@ constexpr auto fn() { 324 - Did you know about `virtual` inheritance in C++? https://github.com/tip-of-the-week/cpp/blob/master/tips/324.md https://github.com/tip-of-the-week/cpp/blob/master/tips/324.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                      Info
                                                                                        @@ -4783,7 +4876,7 @@ struct implementation<V> : virtual interface<decltype(V)> { 323 - Did you know that constexpr is strict about undefined behaviour (UB), object lifetime, etc? https://github.com/tip-of-the-week/cpp/blob/master/tips/323.md https://github.com/tip-of-the-week/cpp/blob/master/tips/323.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                        Info
                                                                                          @@ -5086,7 +5179,7 @@ static_assert(m_1() == ""); 322 - Did you know that C++23 added Monadic operations for std::expected? https://github.com/tip-of-the-week/cpp/blob/master/tips/322.md https://github.com/tip-of-the-week/cpp/blob/master/tips/322.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                          Info
                                                                                            @@ -5324,7 +5417,7 @@ std::expected<order_with_id, error> execute(auto& ts, const market_dat 321 - Did you know that C++23 added support for formatting ranges? https://github.com/tip-of-the-week/cpp/blob/master/tips/321.md https://github.com/tip-of-the-week/cpp/blob/master/tips/321.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                            Info
                                                                                              @@ -5447,7 +5540,7 @@ expect("[[97], [98, 99]]"s == 320 - Did you know about intrisincts to support SIMD (Single Instruction, Multiple Data) instructions? https://github.com/tip-of-the-week/cpp/blob/master/tips/320.md https://github.com/tip-of-the-week/cpp/blob/master/tips/320.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                              Info
                                                                                                @@ -5595,7 +5688,7 @@ int main() { 319 - Did you know that C++11 allows calling functions with reference-to-array parameters from an initializer list? https://github.com/tip-of-the-week/cpp/blob/master/tips/319.md https://github.com/tip-of-the-week/cpp/blob/master/tips/319.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                Info
                                                                                                  @@ -5696,7 +5789,7 @@ consteval auto sum_n(const Lists (&...v)[N]) { 318 - Did you know that `std::unique_ptr` can be constexpr in C++23? https://github.com/tip-of-the-week/cpp/blob/master/tips/318.md https://github.com/tip-of-the-week/cpp/blob/master/tips/318.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                  Info
                                                                                                    @@ -5874,7 +5967,7 @@ function(F) -> function<function_type_t<decltype(&F::operator())> 317 - Did you know that with C++20 you can pass concepts? https://github.com/tip-of-the-week/cpp/blob/master/tips/317.md https://github.com/tip-of-the-week/cpp/blob/master/tips/317.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                    Info
                                                                                                      @@ -6026,7 +6119,7 @@ constexpr auto create(auto&& injector) { 316 - Did you know about `std::rank/std::rank_v` type_trait to get the rank of the array? https://github.com/tip-of-the-week/cpp/blob/master/tips/316.md https://github.com/tip-of-the-week/cpp/blob/master/tips/316.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                      Info
                                                                                                        @@ -6167,7 +6260,7 @@ constexpr auto rank_v = []{ 315 - Did you know about C++20 `is_layout_compatible_v` type_trait? https://github.com/tip-of-the-week/cpp/blob/master/tips/315.md https://github.com/tip-of-the-week/cpp/blob/master/tips/315.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                        Info
                                                                                                          @@ -6259,7 +6352,7 @@ constexpr auto count_compatible = (... + std::is_layout_compatible_v<T, Ts> 314 - Did you know that with gnu:C++26 a more parts of static reflection can be emulated? https://github.com/tip-of-the-week/cpp/blob/master/tips/314.md https://github.com/tip-of-the-week/cpp/blob/master/tips/314.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                          Info
                                                                                                            @@ -6394,7 +6487,7 @@ template 313 - Did you know that C++26 added #embed? https://github.com/tip-of-the-week/cpp/blob/master/tips/313.md https://github.com/tip-of-the-week/cpp/blob/master/tips/313.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                            Info
                                                                                                              @@ -6540,7 +6633,7 @@ constexpr auto meta_contains = 312 - Did you know that C++20 added support for Unevaluated asm-declaration in constexpr functions? https://github.com/tip-of-the-week/cpp/blob/master/tips/312.md https://github.com/tip-of-the-week/cpp/blob/master/tips/312.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                              Info
                                                                                                                @@ -6710,7 +6803,7 @@ int main(int argc, char**) { 311 - Did you know DRY (Don’t Repeat Yourself) comparisons pattern? https://github.com/tip-of-the-week/cpp/blob/master/tips/311.md https://github.com/tip-of-the-week/cpp/blob/master/tips/311.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                Info
                                                                                                                  @@ -6897,7 +6990,7 @@ struct any_of { 310 - Did you know that C+23 permitts static constexpr variables in constexpr functions? https://github.com/tip-of-the-week/cpp/blob/master/tips/310.md https://github.com/tip-of-the-week/cpp/blob/master/tips/310.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                  Info
                                                                                                                    @@ -6992,7 +7085,7 @@ template<> 309 - Did you know that C++20 added support for constexpr std::vector? https://github.com/tip-of-the-week/cpp/blob/master/tips/309.md https://github.com/tip-of-the-week/cpp/blob/master/tips/309.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                    Info
                                                                                                                      @@ -7116,7 +7209,7 @@ static_assert(std::tuple{2} == filter([] { return std::tuple{1, 2, 3}; }, [](aut 308 - Did you know that the layout of struct fields will affect its size/alignment? https://github.com/tip-of-the-week/cpp/blob/master/tips/308.md https://github.com/tip-of-the-week/cpp/blob/master/tips/308.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                      Info
                                                                                                                        @@ -7675,7 +7768,7 @@ template<class T> constexpr auto is_packed_layout_v= sizeof(T) <=1 || i 307 - Did you know that C++23 added static operator[]? https://github.com/tip-of-the-week/cpp/blob/master/tips/307.md https://github.com/tip-of-the-week/cpp/blob/master/tips/307.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                        Info
                                                                                                                          @@ -7806,7 +7899,7 @@ auto fn(){ 306 - Did you know about if/else hell anti-pattern? https://github.com/tip-of-the-week/cpp/blob/master/tips/306.md https://github.com/tip-of-the-week/cpp/blob/master/tips/306.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                          Info
                                                                                                                            @@ -8066,7 +8159,7 @@ int main() { 305 - Did you know about (rejected) proposal for homogeneous variadic function parameters? https://github.com/tip-of-the-week/cpp/blob/master/tips/305.md https://github.com/tip-of-the-week/cpp/blob/master/tips/305.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                            Info
                                                                                                                              @@ -8288,7 +8381,7 @@ auto safe_call(auto fn, auto fmt, ...) { 304 - Did you know that tuple can be implement just with lambdas? https://github.com/tip-of-the-week/cpp/blob/master/tips/304.md https://github.com/tip-of-the-week/cpp/blob/master/tips/304.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                              Info
                                                                                                                                @@ -8682,7 +8775,7 @@ template<class T> [[nodiscard]] constexpr auto get(auto t){ 303 - Did you about typename erasure technique to reduce compilation times with templates? https://github.com/tip-of-the-week/cpp/blob/master/tips/303.md https://github.com/tip-of-the-week/cpp/blob/master/tips/303.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                Info
                                                                                                                                  @@ -8797,7 +8890,7 @@ template<class... Ts> 302 - Did you now that with concepts you can override a type? https://github.com/tip-of-the-week/cpp/blob/master/tips/302.md https://github.com/tip-of-the-week/cpp/blob/master/tips/302.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                  Info
                                                                                                                                    @@ -8921,7 +9014,7 @@ static_assert(std::is_base_of_v<std::__shared_ptr<int, __gnu_cxx::_S_singl 301 - Did you now that functions in `<charconv>` are constexpr since C++23? https://github.com/tip-of-the-week/cpp/blob/master/tips/301.md https://github.com/tip-of-the-week/cpp/blob/master/tips/301.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                    Info
                                                                                                                                      @@ -9112,7 +9205,7 @@ template <int N = 4> 300 - Did you know that C++23 added support for constexpr std::bitset? https://github.com/tip-of-the-week/cpp/blob/master/tips/300.md https://github.com/tip-of-the-week/cpp/blob/master/tips/300.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                      Info
                                                                                                                                        @@ -9258,7 +9351,7 @@ template<size_t N> 299 - Did you know that C++20 concepts can be used to avoid implicit conversions? https://github.com/tip-of-the-week/cpp/blob/master/tips/299.md https://github.com/tip-of-the-week/cpp/blob/master/tips/299.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                        Info
                                                                                                                                          @@ -9415,7 +9508,7 @@ static_assert(not can_invoke_with(foo, int{}, double{}, float{}, float{})); 298 - Did you know that C++23 added static operator()? https://github.com/tip-of-the-week/cpp/blob/master/tips/298.md https://github.com/tip-of-the-week/cpp/blob/master/tips/298.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                          Info
                                                                                                                                            @@ -9554,7 +9647,7 @@ constexpr auto count = [] -> int { 297 - **Did you know that C++20 introduced coroutines?** (co__await) https://github.com/tip-of-the-week/cpp/blob/master/tips/297.md https://github.com/tip-of-the-week/cpp/blob/master/tips/297.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                            Info
                                                                                                                                              @@ -9907,7 +10000,7 @@ class parser { 296 - **Did you know that C++20 introduced coroutines?** (co_yield) https://github.com/tip-of-the-week/cpp/blob/master/tips/296.md https://github.com/tip-of-the-week/cpp/blob/master/tips/296.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                              Info
                                                                                                                                                @@ -10521,7 +10614,7 @@ constexpr auto sum = [](auto generator) { 295 - Did you know that C++23 added `stacktrace` library? https://github.com/tip-of-the-week/cpp/blob/master/tips/295.md https://github.com/tip-of-the-week/cpp/blob/master/tips/295.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                Info
                                                                                                                                                  @@ -10785,7 +10878,7 @@ template <auto N> 294 - Did you know that with C++20 (constexpr containers) TMP can be achieved with STL? https://github.com/tip-of-the-week/cpp/blob/master/tips/294.md https://github.com/tip-of-the-week/cpp/blob/master/tips/294.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                  Info
                                                                                                                                                    @@ -11024,7 +11117,7 @@ auto first_or_last_depending_on_size = List | [] (boost::mp::concepts::meta auto 293 - Did you know that C++17 [[nodiscard]] attribute can be applied not only to function? https://github.com/tip-of-the-week/cpp/blob/master/tips/293.md https://github.com/tip-of-the-week/cpp/blob/master/tips/293.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                    Info
                                                                                                                                                      @@ -11202,7 +11295,7 @@ int main() { 292 - Did you know about memoized for less types (more compile-time friendly) conditional_t? https://github.com/tip-of-the-week/cpp/blob/master/tips/292.md https://github.com/tip-of-the-week/cpp/blob/master/tips/292.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                      Info
                                                                                                                                                        @@ -11401,7 +11494,7 @@ using conditional_t = typename detail::conditional<B>::template fn<T, F 291 - Did you know about [[gnu::cold]] function attribute to mark functions which are unlikely to be called? https://github.com/tip-of-the-week/cpp/blob/master/tips/291.md https://github.com/tip-of-the-week/cpp/blob/master/tips/291.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                        Info
                                                                                                                                                          @@ -12083,7 +12176,7 @@ auto test_lambda_abort(bool error) { 290 - Did you know that lambda expression is guaranteed to have a unique type? https://github.com/tip-of-the-week/cpp/blob/master/tips/290.md https://github.com/tip-of-the-week/cpp/blob/master/tips/290.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                          Info
                                                                                                                                                            @@ -12234,7 +12327,7 @@ template<class T, class U = same, class V = diff<T>> 289 - Did you know that [[assume]] attribute has been accepted to C++23? https://github.com/tip-of-the-week/cpp/blob/master/tips/289.md https://github.com/tip-of-the-week/cpp/blob/master/tips/289.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                            Info
                                                                                                                                                              @@ -12709,7 +12802,7 @@ struct smart_ptr final { 288 - Did you know you can pass an array by reference? https://github.com/tip-of-the-week/cpp/blob/master/tips/288.md https://github.com/tip-of-the-week/cpp/blob/master/tips/288.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                              Info
                                                                                                                                                                @@ -12885,7 +12978,7 @@ template <class T, std::size_t sz> 287 - Did you know that C++23 added `auto(x): decay-copy in the language`? https://github.com/tip-of-the-week/cpp/blob/master/tips/287.md https://github.com/tip-of-the-week/cpp/blob/master/tips/287.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                Info
                                                                                                                                                                  @@ -13177,7 +13270,7 @@ namespace cpp23 { 286 - Did you know that Circle supports Python's extended slice syntax for variadic packs? https://github.com/tip-of-the-week/cpp/blob/master/tips/286.md https://github.com/tip-of-the-week/cpp/blob/master/tips/286.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                  Info
                                                                                                                                                                    @@ -13321,7 +13414,7 @@ static_assert(std::tuple{4, 5, 6} == [](auto... ts) { return std::tuple{ts...[3 285 - Did you know about C++20 template specialization with concepts? https://github.com/tip-of-the-week/cpp/blob/master/tips/285.md https://github.com/tip-of-the-week/cpp/blob/master/tips/285.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                    Info
                                                                                                                                                                      @@ -13461,7 +13554,7 @@ struct foobars<C<fs...>, C<bs...>> {}; 284 - Did you know about C++23 ispanstream - A strstream replacement using span<charT> as buffer? https://github.com/tip-of-the-week/cpp/blob/master/tips/284.md https://github.com/tip-of-the-week/cpp/blob/master/tips/284.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                      Info
                                                                                                                                                                        @@ -13709,7 +13802,7 @@ template<class... Ts, auto N> 283 - Did you know that C++23 added `ranges::to` (conversion from ranges to containers)? https://github.com/tip-of-the-week/cpp/blob/master/tips/283.md https://github.com/tip-of-the-week/cpp/blob/master/tips/283.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                        Info
                                                                                                                                                                          @@ -14050,7 +14143,7 @@ namespace test::stl { 282 - Did you know about introduced in C++20 `object concepts`? https://github.com/tip-of-the-week/cpp/blob/master/tips/282.md https://github.com/tip-of-the-week/cpp/blob/master/tips/282.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                          Info
                                                                                                                                                                            @@ -14626,7 +14719,7 @@ static_assert(not std::regular<not_regular>); 281 - Did you know about gtest.gmock mocking framework? https://github.com/tip-of-the-week/cpp/blob/master/tips/281.md https://github.com/tip-of-the-week/cpp/blob/master/tips/281.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                            Info
                                                                                                                                                                              @@ -14815,7 +14908,7 @@ struct mock_on : ::testing::StrictMock<mock<TEvents>>...{ 280 - Did you know about use cases for type-based `reserved` decorator? https://github.com/tip-of-the-week/cpp/blob/master/tips/280.md https://github.com/tip-of-the-week/cpp/blob/master/tips/280.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                              Info
                                                                                                                                                                                @@ -15171,7 +15264,7 @@ struct reserved : T { 279 - Did you know that C++20 made `std::string` constexpr? https://github.com/tip-of-the-week/cpp/blob/master/tips/279.md https://github.com/tip-of-the-week/cpp/blob/master/tips/279.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                Info
                                                                                                                                                                                  @@ -15262,7 +15355,7 @@ static_assert("abc"s == concat([]{return "a"s;}, []{return & 278 - Did you know that C++23 added Literal Suffix for (signed) size_t? https://github.com/tip-of-the-week/cpp/blob/master/tips/278.md https://github.com/tip-of-the-week/cpp/blob/master/tips/278.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                  Info
                                                                                                                                                                                    @@ -15387,7 +15480,7 @@ int main() { 277 - Did you know that C++17 structured bindings support to custom classes can be added? https://github.com/tip-of-the-week/cpp/blob/master/tips/277.md https://github.com/tip-of-the-week/cpp/blob/master/tips/277.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                    Info
                                                                                                                                                                                      @@ -15547,7 +15640,7 @@ using make_index_sequence = typename detail::make_index_sequence<N>::type; 276 - Did you know that C++23 added `bind_back` to simplify writing higher order functions? https://github.com/tip-of-the-week/cpp/blob/master/tips/276.md https://github.com/tip-of-the-week/cpp/blob/master/tips/276.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                      Info
                                                                                                                                                                                        @@ -15737,7 +15830,7 @@ template <typename ... Args> 275 - Did you know what is the underlying type of NTTP string aka `fixed_string`? https://github.com/tip-of-the-week/cpp/blob/master/tips/275.md https://github.com/tip-of-the-week/cpp/blob/master/tips/275.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                        Info
                                                                                                                                                                                          @@ -15884,7 +15977,7 @@ using to_string_t = decltype([]<auto... Is>(std::index_sequence<Is...&g 274 - Did you know about C++23 proposal `Structured Bindings can introduce a Pack`? https://github.com/tip-of-the-week/cpp/blob/master/tips/274.md https://github.com/tip-of-the-week/cpp/blob/master/tips/274.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                          Info
                                                                                                                                                                                            @@ -16118,7 +16211,7 @@ constexpr auto first(auto... args) { 273 - Did you know that concept can be passed via lambda expression? https://github.com/tip-of-the-week/cpp/blob/master/tips/273.md https://github.com/tip-of-the-week/cpp/blob/master/tips/273.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                            Info
                                                                                                                                                                                              @@ -16336,7 +16429,7 @@ concept fooable = requires (T t) { t.foo(satisfies<Ts>{}...); }; 272 - **Did you know that C++20 added std::ranges::{all_of, any_of, none_of} algorithms**? https://github.com/tip-of-the-week/cpp/blob/master/tips/272.md https://github.com/tip-of-the-week/cpp/blob/master/tips/272.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                              Info
                                                                                                                                                                                                @@ -16610,7 +16703,7 @@ template<auto... Values> 271 - Did you know that C++20 added support for floating point values as non-type template parameters? https://github.com/tip-of-the-week/cpp/blob/master/tips/271.md https://github.com/tip-of-the-week/cpp/blob/master/tips/271.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                Info
                                                                                                                                                                                                  @@ -16768,7 +16861,7 @@ template<double Epsilon = 0.1> 270 - Did you know that C++23 added `std::to_underlying`? https://github.com/tip-of-the-week/cpp/blob/master/tips/270.md https://github.com/tip-of-the-week/cpp/blob/master/tips/270.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                  Info
                                                                                                                                                                                                    @@ -17086,7 +17179,7 @@ constexpr auto sum_enums = []{ 269 - Did you know about `boost::mp11::mp_with_index`? https://github.com/tip-of-the-week/cpp/blob/master/tips/269.md https://github.com/tip-of-the-week/cpp/blob/master/tips/269.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                    Info
                                                                                                                                                                                                      @@ -17401,7 +17494,7 @@ auto vector_to_array(const auto &v, auto f) -> void { return f(ToArray{v} 268 - Did you know that C++20 added `std::erase_if` for std::map and std::vector? https://github.com/tip-of-the-week/cpp/blob/master/tips/268.md https://github.com/tip-of-the-week/cpp/blob/master/tips/268.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                      Info
                                                                                                                                                                                                        @@ -17714,7 +17807,7 @@ template <class... Ts> 267 - Did you know that C++23 added `std::unreachable`? https://github.com/tip-of-the-week/cpp/blob/master/tips/267.md https://github.com/tip-of-the-week/cpp/blob/master/tips/267.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                        Info
                                                                                                                                                                                                          @@ -17904,7 +17997,7 @@ constexpr auto switch_id(const auto id) { 266 - Did you know wrapping an unqualified function name in parentheses suppresses argument-dependent lookup? https://github.com/tip-of-the-week/cpp/blob/master/tips/266.md https://github.com/tip-of-the-week/cpp/blob/master/tips/266.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                          Info
                                                                                                                                                                                                            @@ -17987,7 +18080,7 @@ struct foo {}; 265 - Did you know that C++23 added Attributes on Lambda-Expressions? https://github.com/tip-of-the-week/cpp/blob/master/tips/265.md https://github.com/tip-of-the-week/cpp/blob/master/tips/265.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                            Info
                                                                                                                                                                                                              @@ -18049,7 +18142,7 @@ int main() { 264 - Did you know that C++20 added `__VA_OPT__` for comma omission and comma deletion? https://github.com/tip-of-the-week/cpp/blob/master/tips/264.md https://github.com/tip-of-the-week/cpp/blob/master/tips/264.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                              Info
                                                                                                                                                                                                                @@ -18116,7 +18209,7 @@ int main() { 263 - Did you know that C++23 added std::byteswap to swap bytes? https://github.com/tip-of-the-week/cpp/blob/master/tips/263.md https://github.com/tip-of-the-week/cpp/blob/master/tips/263.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                Info
                                                                                                                                                                                                                  @@ -18418,7 +18511,7 @@ auto make_output = [](auto x){ 262 - Did you know that type_info equality operator is constexpr in C++23? https://github.com/tip-of-the-week/cpp/blob/master/tips/262.md https://github.com/tip-of-the-week/cpp/blob/master/tips/262.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                    @@ -18629,7 +18722,7 @@ consteval bool compare_types(){ 261 - Did you know that C++23 added Monadic operations for std::optional? https://github.com/tip-of-the-week/cpp/blob/master/tips/261.md https://github.com/tip-of-the-week/cpp/blob/master/tips/261.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                      @@ -18766,7 +18859,7 @@ std::optional<order_with_id> execute(auto& ts, const market_data& 260 - Did you know that C++23 added std::move_only_function? https://github.com/tip-of-the-week/cpp/blob/master/tips/260.md https://github.com/tip-of-the-week/cpp/blob/master/tips/260.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                        @@ -18837,7 +18930,7 @@ int main() { 259 - Did you know that static reflection supports introspecting constructors? https://github.com/tip-of-the-week/cpp/blob/master/tips/259.md https://github.com/tip-of-the-week/cpp/blob/master/tips/259.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                          @@ -19027,7 +19120,7 @@ private: 258 - Did you know that static reflection can be used to invoke functions with named parameters? https://github.com/tip-of-the-week/cpp/blob/master/tips/258.md https://github.com/tip-of-the-week/cpp/blob/master/tips/258.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                            @@ -19136,7 +19229,7 @@ int main() { 257 - Did you know that static reflection can be used to implement row polymorphism? https://github.com/tip-of-the-week/cpp/blob/master/tips/257.md https://github.com/tip-of-the-week/cpp/blob/master/tips/257.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                              @@ -19353,7 +19446,7 @@ struct rows : TRows... { 256 - Did you know that static reflection proposal for C++2X has mirror/value based interface? https://github.com/tip-of-the-week/cpp/blob/master/tips/256.md https://github.com/tip-of-the-week/cpp/blob/master/tips/256.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                @@ -19542,7 +19635,7 @@ auto to_string(const T& t) { 255 - Did you know that static reflection proposal for C++2X can reflect functions? https://github.com/tip-of-the-week/cpp/blob/master/tips/255.md https://github.com/tip-of-the-week/cpp/blob/master/tips/255.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                  @@ -19883,7 +19976,7 @@ template<class T> auto to_string() { 254 - Did you know about static reflection proposal for C++2X? https://github.com/tip-of-the-week/cpp/blob/master/tips/254.md https://github.com/tip-of-the-week/cpp/blob/master/tips/254.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                    @@ -20188,7 +20281,7 @@ template <class T> 253 - Did you know that C++20 extends support for data time utilities? https://github.com/tip-of-the-week/cpp/blob/master/tips/253.md https://github.com/tip-of-the-week/cpp/blob/master/tips/253.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                      @@ -20260,7 +20353,7 @@ static_assert(24d / November/ 2022 == sys_days{2022y / November/ Thursday[4]} /* 252 - **Did you know that C++23 added basic_string::resize_and_overwrite**? https://github.com/tip-of-the-week/cpp/blob/master/tips/252.md https://github.com/tip-of-the-week/cpp/blob/master/tips/252.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                        @@ -20428,7 +20521,7 @@ int main() { 251 - Did you know that C++20 added `type_identity` which implements the identity metafunction? https://github.com/tip-of-the-week/cpp/blob/master/tips/251.md https://github.com/tip-of-the-week/cpp/blob/master/tips/251.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                          @@ -20550,7 +20643,7 @@ static_assert(sizeof(int) + sizeof(float) + sizeof(char) == overload_args_sum((n 250 - Did you know about methods to access the last element of variadic pack...? https://github.com/tip-of-the-week/cpp/blob/master/tips/250.md https://github.com/tip-of-the-week/cpp/blob/master/tips/250.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                            @@ -20845,7 +20938,7 @@ constexpr auto nth_element( auto ... args ) 249 - Did you know that C++23 allows extended init-statement with alias-declaration in the for loop? https://github.com/tip-of-the-week/cpp/blob/master/tips/249.md https://github.com/tip-of-the-week/cpp/blob/master/tips/249.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                              @@ -20989,7 +21082,7 @@ auto print(std::ostream& os, auto... args) -> std::ostream& { 248 - Did you know that CRTP can be implemented with C++23 `Deducing this`? https://github.com/tip-of-the-week/cpp/blob/master/tips/248.md https://github.com/tip-of-the-week/cpp/blob/master/tips/248.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                @@ -21214,7 +21307,7 @@ auto get(const auto &self) { return self.get(); } 247 - Did you know that `Deducing this` proposal has been voted out into C++23? https://github.com/tip-of-the-week/cpp/blob/master/tips/247.md https://github.com/tip-of-the-week/cpp/blob/master/tips/247.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                  @@ -21360,7 +21453,7 @@ static_assert(6 == sum(2, 3, 1)); 246 - Did you know that C++11 added a numeric literal operator template? https://github.com/tip-of-the-week/cpp/blob/master/tips/246.md https://github.com/tip-of-the-week/cpp/blob/master/tips/246.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                    @@ -21619,7 +21712,7 @@ template <char... Cs> 245 - Did you know about C++2X proposal to add Multidimensional subscript operator? https://github.com/tip-of-the-week/cpp/blob/master/tips/245.md https://github.com/tip-of-the-week/cpp/blob/master/tips/245.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                      @@ -21897,7 +21990,7 @@ class mdarray{ 244 - Did you know about compiler predefined macros assosicated with the compilation date/time? https://github.com/tip-of-the-week/cpp/blob/master/tips/244.md https://github.com/tip-of-the-week/cpp/blob/master/tips/244.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                        @@ -22088,7 +22181,7 @@ consteval auto strparse( T arg) -> int 243 - Did you know about C++2X `Pattern matching using is and as` proposal? https://github.com/tip-of-the-week/cpp/blob/master/tips/243.md https://github.com/tip-of-the-week/cpp/blob/master/tips/243.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                          @@ -22259,7 +22352,7 @@ int main() { 242 - Did you know that ANSI/ISO C++ conforming programs must not rely on a maximum template depth greater than 17 (changed to 1024 in C++11)? https://github.com/tip-of-the-week/cpp/blob/master/tips/242.md https://github.com/tip-of-the-week/cpp/blob/master/tips/242.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                            @@ -22484,7 +22577,7 @@ struct data : TArgs... {
                                                                                                                                                                                                                                                            241 - Did you know about different ways of accessing C-style arrays by index? https://github.com/tip-of-the-week/cpp/blob/master/tips/241.md https://github.com/tip-of-the-week/cpp/blob/master/tips/241.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                              @@ -22634,7 +22727,7 @@ constexpr auto sum_n(const auto& array) { 240 - Did you know that `using-declarator` can be used to manipulate the overload set? https://github.com/tip-of-the-week/cpp/blob/master/tips/240.md https://github.com/tip-of-the-week/cpp/blob/master/tips/240.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                @@ -22855,7 +22948,7 @@ auto sum_prices(Proc&& ... proc) { 239 - Did you know that Circle Meta-model allows to convert string to a type? https://github.com/tip-of-the-week/cpp/blob/master/tips/239.md https://github.com/tip-of-the-week/cpp/blob/master/tips/239.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                  @@ -22966,7 +23059,7 @@ constexpr auto strings_to_tuple(Ts ...) { 238 - Did you know that Circle Meta-model allows for applying `normal` STL for operations on @meta types? https://github.com/tip-of-the-week/cpp/blob/master/tips/238.md https://github.com/tip-of-the-week/cpp/blob/master/tips/238.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                    @@ -23164,7 +23257,7 @@ constexpr auto calls_verify_types(auto expected, auto given) { 237 - Did you know about C++2X proposal for the Circle Meta-model for compilation-time meta-programming? https://github.com/tip-of-the-week/cpp/blob/master/tips/237.md https://github.com/tip-of-the-week/cpp/blob/master/tips/237.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                      @@ -23319,7 +23412,7 @@ template<class T> auto to_tuple_with_names(const T& t){ 236 - Did you know about `__builtin_dump_struct` clang-extension which can nicely print a struct? https://github.com/tip-of-the-week/cpp/blob/master/tips/236.md https://github.com/tip-of-the-week/cpp/blob/master/tips/236.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                        @@ -23700,7 +23793,7 @@ template<class T> [[nodiscard]] auto to_tuple_with_names(const T& t) { 235 - Did you know that C++20 `[[no_unique_address]]` can be used to implement lazy/fast/memory efficient views? https://github.com/tip-of-the-week/cpp/blob/master/tips/235.md https://github.com/tip-of-the-week/cpp/blob/master/tips/235.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                          @@ -23882,7 +23975,7 @@ template <class T> 234 - Did you know about function-try-block and that exceptions caught inside that block are implicitly rethrown? https://github.com/tip-of-the-week/cpp/blob/master/tips/234.md https://github.com/tip-of-the-week/cpp/blob/master/tips/234.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                            @@ -23998,7 +24091,7 @@ struct foo : Ts... { 233 - Did you know that C++20 made `typename` more optional? https://github.com/tip-of-the-week/cpp/blob/master/tips/233.md https://github.com/tip-of-the-week/cpp/blob/master/tips/233.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                              @@ -24078,7 +24171,7 @@ auto f8(auto t) -> decltype(t)::type; 232 - Did you know that different overloads can have different specifiers? https://github.com/tip-of-the-week/cpp/blob/master/tips/232.md https://github.com/tip-of-the-week/cpp/blob/master/tips/232.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                @@ -24181,7 +24274,7 @@ consteval auto f(auto... values) requires (sizeof...(values) > 1) { return (. 231 - Did you know about C++17 variadic using declaration? https://github.com/tip-of-the-week/cpp/blob/master/tips/231.md https://github.com/tip-of-the-week/cpp/blob/master/tips/231.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                  @@ -24370,7 +24463,7 @@ struct handler final : on_method<Ts>... { 230 - Did you know that C++23 added `if consteval`? https://github.com/tip-of-the-week/cpp/blob/master/tips/230.md https://github.com/tip-of-the-week/cpp/blob/master/tips/230.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                    @@ -24483,7 +24576,7 @@ constexpr auto add_or_sub = [](const auto... args) { 229 - Did you know about python's named tuples? https://github.com/tip-of-the-week/cpp/blob/master/tips/229.md https://github.com/tip-of-the-week/cpp/blob/master/tips/229.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                      @@ -24751,7 +24844,7 @@ struct namedtuple{ 228 - Did you know that C++ allows accessing private members with friend injection? https://github.com/tip-of-the-week/cpp/blob/master/tips/228.md https://github.com/tip-of-the-week/cpp/blob/master/tips/228.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                        @@ -24956,7 +25049,7 @@ EXPOSE_MEMBER_AND_THEN_GO_THINK_ABOUT_WHAT_YOU_HAVE_DONE(business::messages, tra 227 - Did you know that `std::variant` become valueless by exception? https://github.com/tip-of-the-week/cpp/blob/master/tips/227.md https://github.com/tip-of-the-week/cpp/blob/master/tips/227.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                          @@ -25296,7 +25389,7 @@ int main() { 226 - Did you know about C++23 feature which adds support for inheriting from std::variant? https://github.com/tip-of-the-week/cpp/blob/master/tips/226.md https://github.com/tip-of-the-week/cpp/blob/master/tips/226.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                            @@ -25559,7 +25652,7 @@ const auto print_id = [] (auto& os) { 225 - Did you know about C++23 feature which removes unnecessary ()’s from C++ lambdas? https://github.com/tip-of-the-week/cpp/blob/master/tips/225.md https://github.com/tip-of-the-week/cpp/blob/master/tips/225.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                              @@ -25628,7 +25721,7 @@ const auto print_id = [] (auto& os) { 224 - Did you know that the JSON standard does not specify that the insertion order of object elements should be preserved? https://github.com/tip-of-the-week/cpp/blob/master/tips/224.md https://github.com/tip-of-the-week/cpp/blob/master/tips/224.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                @@ -25902,7 +25995,7 @@ constexpr auto to_json(std::tuple< named<T> ... > const & arg) 223 - Did you know about the proposal to add json support to the standard library? https://github.com/tip-of-the-week/cpp/blob/master/tips/223.md https://github.com/tip-of-the-week/cpp/blob/master/tips/223.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                  @@ -26096,7 +26189,7 @@ template<class ...T> constexpr auto to_json(const std::tuple<named<T 222 - Did you know that C++23 added `contains` function to `string_view`? https://github.com/tip-of-the-week/cpp/blob/master/tips/222.md https://github.com/tip-of-the-week/cpp/blob/master/tips/222.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                                    @@ -26298,7 +26391,7 @@ consteval auto values(auto in, auto str) { 221 - Did you know that with Automatic DI production wiring can be overwritten for integration testing? https://github.com/tip-of-the-week/cpp/blob/master/tips/221.md https://github.com/tip-of-the-week/cpp/blob/master/tips/221.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                                      @@ -26453,7 +26546,7 @@ constexpr auto create(auto&& production, const TFakes&... fakes) -&g 220 - Did you know that with Automatic DI one can control how dependencies are being created? https://github.com/tip-of-the-week/cpp/blob/master/tips/220.md https://github.com/tip-of-the-week/cpp/blob/master/tips/220.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                                        @@ -26664,7 +26757,7 @@ int main() { 219 - Did you know about Automatic Dependency Injection libraries such as DI? https://github.com/tip-of-the-week/cpp/blob/master/tips/219.md https://github.com/tip-of-the-week/cpp/blob/master/tips/219.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                                          @@ -27314,7 +27407,7 @@ int main() { 218 - Did you know about different ways of constructor Dependency Injection? https://github.com/tip-of-the-week/cpp/blob/master/tips/218.md https://github.com/tip-of-the-week/cpp/blob/master/tips/218.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                                            @@ -27844,7 +27937,7 @@ bdd::gherkin::steps steps = [](auto& steps) { 217 - Did you know the difference between fakes, stubs, mocks? https://github.com/tip-of-the-week/cpp/blob/master/tips/217.md https://github.com/tip-of-the-week/cpp/blob/master/tips/217.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                                              @@ -28358,7 +28451,7 @@ bdd::gherkin::steps steps = [](auto& steps) { 216 - Did you know that you can inject singletons to improve testability? https://github.com/tip-of-the-week/cpp/blob/master/tips/216.md https://github.com/tip-of-the-week/cpp/blob/master/tips/216.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                                @@ -28777,7 +28870,7 @@ int main() { 215 - Did you know C++2X Pattern Matching can be used for run-time dispatching? https://github.com/tip-of-the-week/cpp/blob/master/tips/215.md https://github.com/tip-of-the-week/cpp/blob/master/tips/215.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                                  @@ -29083,7 +29176,7 @@ struct sm { 214 - Did you know about variadic aggregate initialization? https://github.com/tip-of-the-week/cpp/blob/master/tips/214.md https://github.com/tip-of-the-week/cpp/blob/master/tips/214.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                                                    @@ -29484,7 +29577,7 @@ private: 213 - Did you know that mapping types to values is a simple way to transition from compile-time to run-time space? https://github.com/tip-of-the-week/cpp/blob/master/tips/213.md https://github.com/tip-of-the-week/cpp/blob/master/tips/213.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                                                      @@ -29853,7 +29946,7 @@ struct sm { 212 - Did you know that lambdas are const by default but can be mutable and keep state? https://github.com/tip-of-the-week/cpp/blob/master/tips/212.md https://github.com/tip-of-the-week/cpp/blob/master/tips/212.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                                                        @@ -30474,7 +30567,7 @@ auto sum_prices = [sum = std::size_t{}](std::string_view buffer) mutable -> s 211 - Did you know about C++2X Pattern Matching proposal? https://github.com/tip-of-the-week/cpp/blob/master/tips/211.md https://github.com/tip-of-the-week/cpp/blob/master/tips/211.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                                                          @@ -30916,7 +31009,7 @@ auto sum_prices = [sum = std::size_t{}](std::string_view buffer) mutable -> s 210 - Did you know about `Design By Introspection`? https://github.com/tip-of-the-week/cpp/blob/master/tips/210.md https://github.com/tip-of-the-week/cpp/blob/master/tips/210.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                                                            @@ -31176,7 +31269,7 @@ private: 209 - Did you know about `Policy Based Design`? https://github.com/tip-of-the-week/cpp/blob/master/tips/209.md https://github.com/tip-of-the-week/cpp/blob/master/tips/209.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                                                              @@ -31386,7 +31479,7 @@ struct foo { 208 - Did you know that default template arguments can be explored with template template arguments? https://github.com/tip-of-the-week/cpp/blob/master/tips/208.md https://github.com/tip-of-the-week/cpp/blob/master/tips/208.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                                                @@ -31696,7 +31789,7 @@ using rebind_defaults_t = detail::rebind<T, type_defaults_t<T>, TBinds. 207 - Did you know about the proposal to add constexpr function parmaters? https://github.com/tip-of-the-week/cpp/blob/master/tips/207.md https://github.com/tip-of-the-week/cpp/blob/master/tips/207.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                                                  @@ -31994,7 +32087,7 @@ template<class...Args> struct tuple : std::tuple<Args...> { 206 - Did you know about proposal to add support for recursive lambdas? https://github.com/tip-of-the-week/cpp/blob/master/tips/206.md https://github.com/tip-of-the-week/cpp/blob/master/tips/206.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                                                                    @@ -32172,7 +32265,7 @@ constexpr auto sum_years = [](const auto year) { 205 - Did you know that C++20 `std::to_array` supports creating from string literals? https://github.com/tip-of-the-week/cpp/blob/master/tips/205.md https://github.com/tip-of-the-week/cpp/blob/master/tips/205.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                                                                      @@ -32322,7 +32415,7 @@ constexpr const auto xmas_tree = tree<Size, T>(); 204 - Did you know that you can implement a compile-time map with C++? https://github.com/tip-of-the-week/cpp/blob/master/tips/204.md https://github.com/tip-of-the-week/cpp/blob/master/tips/204.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                                                                        @@ -32584,7 +32677,7 @@ constexpr unpack<T, pack<Ts...>, "one", "two"> m 203 - Did you know that in C++ `char`, `signed char` and `unsigned char` are 3 different types? https://github.com/tip-of-the-week/cpp/blob/master/tips/203.md https://github.com/tip-of-the-week/cpp/blob/master/tips/203.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                                                                          @@ -32922,7 +33015,7 @@ static_assert(not [](auto... args) { return requires { foo(args...); }; }((signe 202 - Did you know that C++20 added `Using Enum` which introduces the enumerator names of the named enumeration as if by a using-declaration for each enumerator? https://github.com/tip-of-the-week/cpp/blob/master/tips/202.md https://github.com/tip-of-the-week/cpp/blob/master/tips/202.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                                                                            @@ -33059,7 +33152,7 @@ static_assert(is_enum_in_scope<InScope>([](auto e){ return requires { e.ec 201 - Did you know that `sizeof` operator can be used for efficient math computation? https://github.com/tip-of-the-week/cpp/blob/master/tips/201.md https://github.com/tip-of-the-week/cpp/blob/master/tips/201.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                                                                              @@ -33208,7 +33301,7 @@ constexpr auto exponent = []<auto... Ns>(std::index_sequence<Ns...>) 200 - Did you know that C++23 added `is_scoped_enum` type trait to detect whether an enum is scoped? https://github.com/tip-of-the-week/cpp/blob/master/tips/200.md https://github.com/tip-of-the-week/cpp/blob/master/tips/200.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                                                                @@ -33353,7 +33446,7 @@ concept any_enum = std::is_enum_v<T> and std::is_convertible_v<T, std:: 199 - Did you know about proposal to introduce constexpr ternary operator? https://github.com/tip-of-the-week/cpp/blob/master/tips/199.md https://github.com/tip-of-the-week/cpp/blob/master/tips/199.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                                                                  @@ -33803,7 +33896,7 @@ constexpr auto operator or(const TCompare& lhs, const auto& false_in) 198 - Did you know about different ways of iterating over objects? https://github.com/tip-of-the-week/cpp/blob/master/tips/198.md https://github.com/tip-of-the-week/cpp/blob/master/tips/198.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                                                                                    @@ -34134,7 +34227,7 @@ auto iterate(std::vector<T> v, auto&& expr) -> void { 197 - Did you know that Lambdas in Unevaluated Context combined with Template Constraints (Concepts) can be used with types? https://github.com/tip-of-the-week/cpp/blob/master/tips/197.md https://github.com/tip-of-the-week/cpp/blob/master/tips/197.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                                                                                      @@ -34278,7 +34371,7 @@ using copy_if = detail::type_filter<TExpr, Ts...>; 196 - Did you know that Lambdas in Unevaluated Context combined with Immediately Invoked Function Expressions (IIFE) can be used to simplify Template Meta-Programming? https://github.com/tip-of-the-week/cpp/blob/master/tips/196.md https://github.com/tip-of-the-week/cpp/blob/master/tips/196.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                                                                                        @@ -34397,7 +34490,7 @@ constinit auto add_pointer = type_list<decltype([](auto v) 195 - Did you know that C++20 added support for `[[no_unique_address]]` attribute? https://github.com/tip-of-the-week/cpp/blob/master/tips/195.md https://github.com/tip-of-the-week/cpp/blob/master/tips/195.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                                                                                          @@ -34520,7 +34613,7 @@ struct [[gnu::packed]] foo { 194 - Did you know about C++23 proposal to add `views::enumerate`? https://github.com/tip-of-the-week/cpp/blob/master/tips/194.md https://github.com/tip-of-the-week/cpp/blob/master/tips/194.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                                                                                            @@ -34704,7 +34797,7 @@ struct enumerate { 193 - Did you know that C++20 added support for `constexpr new`? https://github.com/tip-of-the-week/cpp/blob/master/tips/193.md https://github.com/tip-of-the-week/cpp/blob/master/tips/193.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                                                                                              @@ -34837,7 +34930,7 @@ struct unique_ptr { 192 - Did you know about `std::expected` proposal for error handling? https://github.com/tip-of-the-week/cpp/blob/master/tips/192.md https://github.com/tip-of-the-week/cpp/blob/master/tips/192.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                                                                                @@ -35036,7 +35129,7 @@ struct expected : std::optional<T> 191 - Did you know that expression evaluation order is not specified? https://github.com/tip-of-the-week/cpp/blob/master/tips/191.md https://github.com/tip-of-the-week/cpp/blob/master/tips/191.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                                                                                  @@ -35136,7 +35229,7 @@ int main() { 190 - Did you know that C++20 added `ostream_joiner` that writes successive objects into the basic_ostream separated by a delimiter? https://github.com/tip-of-the-week/cpp/blob/master/tips/190.md https://github.com/tip-of-the-week/cpp/blob/master/tips/190.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                  Info
                                                                                                                                                                                                                                                                                                                                                                    @@ -35329,7 +35422,7 @@ public: 189 - Did you know that Compile Time Regular Expressions support extracting matches? https://github.com/tip-of-the-week/cpp/blob/master/tips/189.md https://github.com/tip-of-the-week/cpp/blob/master/tips/189.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                    Info
                                                                                                                                                                                                                                                                                                                                                                      @@ -35582,7 +35675,7 @@ constexpr auto parse_args<empty>(std::string_view input) -> empty { 188 - Did you know about proposal to add Compile Time Regular Expressions? https://github.com/tip-of-the-week/cpp/blob/master/tips/188.md https://github.com/tip-of-the-week/cpp/blob/master/tips/188.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                      Info
                                                                                                                                                                                                                                                                                                                                                                        @@ -35943,7 +36036,7 @@ static_assert(ctre::match<".*">("hello world")); 187 - Did you know that C++17 made exception specifications be part of the type system? https://github.com/tip-of-the-week/cpp/blob/master/tips/187.md https://github.com/tip-of-the-week/cpp/blob/master/tips/187.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                        Info
                                                                                                                                                                                                                                                                                                                                                                          @@ -36152,7 +36245,7 @@ constexpr auto function_pointer_maker() -> decltype(&T::template operator 186 - Did you know Non-Type Template Parameters (NTTP) with User-Defined Literals (UDL) can be used to get compile-time strings? https://github.com/tip-of-the-week/cpp/blob/master/tips/186.md https://github.com/tip-of-the-week/cpp/blob/master/tips/186.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                          Info
                                                                                                                                                                                                                                                                                                                                                                            @@ -36346,7 +36439,7 @@ constexpr auto fixed_format(auto format, auto... args) { 185 - Did you know about the proposal to make `printf` compile-time safe and with named arguments? https://github.com/tip-of-the-week/cpp/blob/master/tips/185.md https://github.com/tip-of-the-week/cpp/blob/master/tips/185.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                            Info
                                                                                                                                                                                                                                                                                                                                                                              @@ -36625,7 +36718,7 @@ constexpr auto has_valid_args(auto fmt, auto... args) { 184 - **Did you know that you can customize formatter for your classes with `std::format`**? https://github.com/tip-of-the-week/cpp/blob/master/tips/184.md https://github.com/tip-of-the-week/cpp/blob/master/tips/184.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                              Info
                                                                                                                                                                                                                                                                                                                                                                                @@ -36875,7 +36968,7 @@ struct fmt::formatter<foo<Ts...>> { 183 - Did you know that `Formatted output` has been accepted into C++20? https://github.com/tip-of-the-week/cpp/blob/master/tips/183.md https://github.com/tip-of-the-week/cpp/blob/master/tips/183.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                                Info
                                                                                                                                                                                                                                                                                                                                                                                  @@ -37071,7 +37164,7 @@ id_continue ::= id_start | digit 182 - Did you know about the proposal to add Non-terminal variadic template parameters? https://github.com/tip-of-the-week/cpp/blob/master/tips/182.md https://github.com/tip-of-the-week/cpp/blob/master/tips/182.md - Thu, 15 Feb 2024 06:36:35 GMT + Sun, 25 Feb 2024 18:58:12 GMT

                                                                                                                                                                                                                                                                                                                                                                                  Info