Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The C++23 std::views::chunk_by is a view similar to C++20 std::views::split; however, unlike split, it operates using a binary predicate. A new chunk will be started between the two tested elements when the predicate returns false. Compiler Explorer link: https://lnkd.in/gvQ88rkC #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

Juan Antonio Herreros Bragado

Like
Reply
🍊 Hana Dusíková

Staff Software Engineer at Woven by Toyota, Chair of SG for Compile-Time Programming, Assistant Chair for Evolution Working Group, Czech National Body in ISO/IEC JTC1 SC22 (Programming Languages) and WG21 (C++ Committee)

3y

TIL about std::signbit, but I don't like it ... as it converts the value into double before checking the signness.

See more comments

To view or add a comment, sign in

Explore content categories