deductiongu..._while_view(3)
π
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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms