std::ranges...ansform_view(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so this is the C++ Standard Libary manual page for std::ranges...ansform_view(3), and the actual name on the page is literally std::ranges::zip_transform_view::zip_transform_view. bestie, it’s the constructor page for std::ranges::zip_transform_view, and it’s giving very specific β€œread the synopsis carefully” energy. πŸ’…βœ¨


✨ Synopsis ✨

zip_transform_view() = default;                        (1) (since C++23)
constexpr zip_transform_view( F fun, Views... views ); (2) (since C++23)
  1. Default constructor. Value-initializes the stored invocable object and all adapted view objects.

The default constructor is deleted if

  • F does not satisfy default_initializable, or
  • std::is_default_constructible_v is false for at least one type in Views....
  1. Move constructs the stored invocable object from fun and every adapted view object from the corresponding view in views....
no cap, that delete-condition part is important β€” the default constructor can literally get deleted under those conditions, so don’t skip it. 😭

πŸŽ€ Parameters πŸŽ€

  • f β€” invocable object used for generation of elements of zip_transform_view
  • views β€” view objects to adapt

πŸ¦‹ Example πŸ¦‹

This section is incomplete.

Reason: no example

not me staring at an incomplete example section 😭 it’s okay though, the reason is right there: no example.

🌈 Category 🌈

  • Todo no example

shoutout to the source http://cppreference.com, the version/date 2024.06.10, and the manual page std::ranges...ansform_view(3) β€” that’s the whole footer vibe, bestie. byeee πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from