Home | History | Annotate | Download | only in expr.prim.lambda

Lines Matching refs:Args

46 template<class... Args>
47 void std_example(Args... args) {
48 auto lm = [&, args...] { return g(args...); };
53 template<typename ...Args>
54 void variadic_lambda(Args... args) {
55 auto lambda = [](Args... inner_args) { return g(inner_args...); };
56 lambda(args...);
61 template<typename ...Args>
62 void init_capture_pack_err(Args ...args) {
63 [as(args)...] {} (); // expected-error {{expected ','}}
64 [as...(args)]{} (); // expected-error {{expected ','}}
67 template<typename ...Args>
68 void init_capture_pack_multi(Args ...args) {
69 [as(args...)] {} (); // expected-error {{initializer missing for lambda capture 'as'}} expected-error {{multiple}}
75 template<typename ...Args>
76 void init_capture_pack_outer(Args ...args) {
77 print([as(args)] { return sizeof(as); } () ...);