enum LambdaCaptureKind

Description

The different capture forms in a lambda introducer C++11 allows capture of \c this, or of local variables by copy or by reference. C++1y also allows "init-capture", where the initializer is an expression.

Declared at: clang/include/clang/Basic/Lambda.h:33

Enumerators

NameValueComment
LCK_This0Capturing the \c *this object by reference
LCK_StarThis1Capturing the \c *this object by copy
LCK_ByCopy2Capturing by copy (a.k.a., by value)
LCK_ByRef3Capturing by reference
LCK_VLAType4Capturing variable-length array type