CodeQL library for C/C++
codeql/cpp-all 0.7.2 ( changelog , source )
Search

Member predicate LambdaExpression :: getDefaultCaptureMode

Gets the default variable capture mode for the lambda expression.

Will be one of:

  • "" if no default was specified, meaning that all captures must be explicit.
  • “&” if capture-by-reference is the default for implicit captures.
  • “=” if capture-by-value is the default for implicit captures.
string getDefaultCaptureMode ( )