lambda
lambda-expressions-constexpr
◆ const_inc()
constexpr int const_inc |
( |
int |
n | ) |
|
|
constexpr |
Definition at line 169 of file 17.cpp.
171 return [n] {
return n + 1; }();
◆ can_be_constexpr1
auto can_be_constexpr1 = [](auto a) { return a; } |
◆ can_be_constexpr2
auto can_be_constexpr2 = [](int(*fp)(int), auto a) { return fp(a); } |
◆ identity
auto identity = [](int n) constexpr { return n; } |
◆ inc
constexpr int(* inc) (int) |
( |
int |
| ) |
= const_inc |
|
constexpr |
◆ non_const
auto non_const = [](auto a) {static int s; return a; } |