deductiongu..._while_view(3)

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

πŸ’… deduction guides for std::ranges::drop_while_view πŸ’…

okay so bestie, welcome to the C++ Standard Library corner of the internet, where we're talking about the deduction guide for std::ranges::drop_while_view β€” yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic ✨


🌸 NAME 🌸

deductionguidesforstd::ranges::drop_while_view β€” literally the deduction guides for std::ranges::drop_while_view. that's it. that's the name. periodt πŸ’…


✨ SYNOPSIS ✨

so this lil cutie lives in the header <ranges> β€” don't forget to include it or the compiler will simply not know her 🫢

template< class R, class Pred >
drop_while_view( R&&, Pred ) -> drop_while_view<views::all_t<R>, Pred>;

since C++20 btw, so if your compiler's stuck in the past that's a you problem 😭


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the tea β˜•: this deduction guide is provided for std::ranges::drop_while_view so that you can get deduction from a range and a predicate. like, the compiler figures out the template arguments for you from the arguments you hand it β€” no <views::all_t<R>, Pred> spelling-out required, she does it herself. main character energy fr fr πŸ‘‘

it's giving "CTAD but make it ranges" πŸ’–


πŸŽ€ EXAMPLE πŸŽ€

⚠️ heads up bestie β€” this section is incomplete reason: no example πŸ™ˆ

so yeah… no example here. not me showing up with an empty example section 😭 we move though.


🧚 CATEGORY 🧚

  • Todo: no example β€” yeah, that's the todo. it's right there. the to-do is literally "no example." slay I guess πŸ’€

that's the whole page bestie β€” short, sweet, and lowkey just here to tell you the deduction guide exists πŸ’œ

sooo this came from http://cppreference.com and the version/date on the tin is 2024.06.10 β€” take care of her, she's a period piece πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from