Statements (18)
Predicate | Object |
---|---|
gptkbp:instanceOf |
C++ language feature
|
gptkbp:allows |
lambdas to be constexpr
|
gptkbp:enables |
constexpr algorithms with lambdas
constexpr std::function with lambdas lambdas in constant expressions |
gptkbp:example |
constexpr auto f = [](int x) { return x + 1; };
|
gptkbp:hasSyntax |
lambda with constexpr specifier
|
https://www.w3.org/2000/01/rdf-schema#label |
C++17 constexpr lambdas
|
gptkbp:introducedIn |
gptkb:C++17
|
gptkbp:limitation |
captures must be allowed in constant expressions
mutable lambdas not constexpr by default |
gptkbp:relatedTo |
C++ lambdas
constexpr functions |
gptkbp:requires |
lambda body to be constexpr-compatible
|
gptkbp:standardizedBy |
gptkb:ISO/IEC_14882:2017
|
gptkbp:usedFor |
compile-time computation
|
gptkbp:bfsParent |
gptkb:C++11_lambda_expressions
|
gptkbp:bfsLayer |
7
|