Lines Matching full:args

47 template<class... Args>
48 void std_example(Args... args) { in std_example() argument
49 auto lm = [&, args...] { return g(args...); }; in std_example()
54 template<typename ...Args>
55 void variadic_lambda(Args... args) { in variadic_lambda() argument
56 auto lambda = [](Args... inner_args) { return g(inner_args...); }; in variadic_lambda()
57 lambda(args...); in variadic_lambda()
62 template<typename ...Args>
63 void init_capture_pack_err(Args ...args) { in init_capture_pack_err() argument
64 [...as(args)]{} (); in init_capture_pack_err()
65 …[as(args)...] {} (); // expected-error {{ellipsis in pack init-capture must appear before the name… in init_capture_pack_err()
66 …[as...(args)]{} (); // expected-error {{ellipsis in pack init-capture must appear before the name … in init_capture_pack_err()
67 [...as{args}]{} (); in init_capture_pack_err()
68 …[as{args}...] {} (); // expected-error {{ellipsis in pack init-capture must appear before the name… in init_capture_pack_err()
69 …[as...{args}]{} (); // expected-error {{ellipsis in pack init-capture must appear before the name … in init_capture_pack_err()
70 [...as = args]{} (); in init_capture_pack_err()
71 …[as = args...] {} (); // expected-error {{ellipsis in pack init-capture must appear before the nam… in init_capture_pack_err()
72 …[as... = args]{} (); // expected-error {{ellipsis in pack init-capture must appear before the name… in init_capture_pack_err()
74 [&...as(args)]{} (); in init_capture_pack_err()
75 …[...&as(args)]{} (); // expected-error {{ellipsis in pack init-capture must appear before the name… in init_capture_pack_err()
77 [args...] {} (); in init_capture_pack_err()
78 …[...args] {} (); // expected-error {{ellipsis in pack capture must appear after the name of the ca… in init_capture_pack_err()
80 [&args...] {} (); in init_capture_pack_err()
81 …[...&args] {} (); // expected-error {{ellipsis in pack capture must appear after the name of the c… in init_capture_pack_err()
82 …[&...args] {} (); // expected-error {{ellipsis in pack capture must appear after the name of the c… in init_capture_pack_err()
85 template<typename ...Args>
86 void init_capture_pack_multi(Args ...args) { in init_capture_pack_multi() argument
87 …[as(args...)] {} (); // expected-error {{initializer missing for lambda capture 'as'}} expected-er… in init_capture_pack_multi()
93 template<typename ...Args>
94 void init_capture_pack_outer(Args ...args) { in init_capture_pack_outer() argument
95 print([as(args)] { return sizeof(as); } () ...); in init_capture_pack_outer()