std::experi...ambdaCapture(3)

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

πŸ’– NAME πŸ’–

std::experimental::reflect::LambdaCapture β€” like, literally the std::experimental::reflect::LambdaCapture concept, bestie. That's the whole name, no notes πŸ’…

This page lives in the C++ Standard Library manual (cppreference, the std::experi...ambdaCapture(3) page β€” yes the title bar truncates it, she's dramatic like that πŸŽ€).


✨ Synopsis ✨

Okay so first things first, where does she live? Right here, queen:

Defined in header <experimental/reflect>

And here's the actual declaration, copy it exactly please, no typos or she won't compile 😭:

template< class T >                                      (reflection TS)
concept LambdaCapture = Variable<T> && /* see below */;

So what does it all mean? The LambdaCapture concept is satisfied if and only if T reflects a lambda capture as introduced by the capture list or by capture defaults. Periodt. πŸ”₯

🌸 Note (and this is important, don't skip it): The Scope of a LambdaCapture is its immediately enclosing Lambda. Like, her main character energy only extends to the lambda she's literally inside of. That's her whole world πŸ’œ

πŸŽ€ Example πŸŽ€

This section is incomplete.

Reason: examples

(no cap, they really just left us hanging like that πŸ™ˆ)


πŸ¦‹ See also πŸ¦‹

This section is incomplete.

Reason: templatization

(yeah… also empty. it's giving "we'll finish this later" πŸ’€)


πŸ‘‘ Category: πŸ‘‘

  • Todo with reason

alright bestie that's the whole page, you ate that reading ngl 🫢 stay hydrated, keep your concepts satisfied, and remember: if it's not Variable<T> && it's not her ✨

mwπŸ’‹ah β€” this was the std::experi...ambdaCapture(3) page from cppreference.com, dated 2024.06.10. see you in the next man page, love u, bye πŸŽ€πŸ’–πŸŒˆ

πŸ“¦ where this page comes from