Šimon TóthDaily bit(e) of C++ | std::ranges::contains, std::ranges::contains_subrangeDaily bit(e) of C++ ♻️122, Simpler linear presence checks using the C++23 std::ranges::contains and std::ranges::contains_subrange.22h ago22h ago
Šimon TóthDaily bit(e) of C++ | std::lock_guardDaily bit(e) of C++ #482, A simple RAII mutex lock type: std::lock_guard.1d ago1d ago
Šimon TóthDaily bit(e) of C++ | std::views::adjacent, std::views::pairwiseDaily bit(e) of C++ ♻️127, The “sliding tuple” views: std::views::adjacent, std::views::pairwise.2d ago2d ago
Šimon TóthDaily bit(e) of C++ | std::binary_searchDaily bit(e) of C++ ♻️225, The O(logn) presence check algorithm on at least partitioned data: std::binary_search.3d ago3d ago
Šimon TóthDaily bit(e) of C++ | std::endianDaily bit(e) of C++ ♻️130, Compile-time information about the endianness of a system using C++20 std::endian.4d ago4d ago
Šimon TóthDaily bit(e) of C++ | std::views::strideDaily bit(e) of C++ ♻️82, The C++23 view of every n-th element in a range: std::views::stride.5d ago5d ago
Šimon TóthDaily bit(e) of C++ | type taggingDaily bit(e) of C++ ♻️120, Distinguishing function overloads that fully overlap using type tagging.6d ago6d ago
Šimon TóthDaily bit(e) of C++ | init statementsDaily bit(e) of C++ ♻️125, Creating local variables using init statements in if (C++17), switch (C++17) and range-for loop (C++20)…Jul 20Jul 20
Šimon TóthDaily bit(e) of C++ | std::views::chunk_byDaily bit(e) of C++ ♻️89, Splitting a range into chunks based on a predicate using std::views::chunk_by.Jul 19Jul 19
Šimon TóthDaily bit(e) of C++ | raw string literalsDaily bit(e) of C++ ♻️146, Avoiding the need to escape special characters using raw string literals.Jul 18Jul 18