Lines Matching refs:initializer_list
13 class initializer_list class
18 initializer_list(const _E* __b, size_t __s) in initializer_list() function in std::initializer_list
32 initializer_list() : __begin_(nullptr), __size_(0) {} in initializer_list() function in std::initializer_list
58 std::initializer_list<int> il = { 1, 2, 3 }; in simple_list()
59 std::initializer_list<double> dl = { 1.0, 2.0, 3 }; in simple_list()
60 std::initializer_list<A> al = { {1, 2}, {2, 3}, {3, 4} }; in simple_list()
61 std::initializer_list<B> bl = { {1, 2}, {2, 3}, {} }; in simple_list()
65 void f(std::initializer_list<int>); in function_call()
68 void g(std::initializer_list<B>); in function_call()
83 one overloaded(std::initializer_list<int>); in overloaded_call()
84 two overloaded(std::initializer_list<B>); in overloaded_call()
89 void ambiguous(std::initializer_list<A>); // expected-note {{candidate}} in overloaded_call()
90 void ambiguous(std::initializer_list<B>); // expected-note {{candidate}} in overloaded_call()
93 one ov2(std::initializer_list<int>); // expected-note {{candidate}} in overloaded_call()
94 two ov2(std::initializer_list<C>); // expected-note {{candidate}} in overloaded_call()
102 T deduce(std::initializer_list<T>); // expected-note {{conflicting types for parameter 'T' ('int' v…
104 T deduce_ref(const std::initializer_list<T>&); // expected-note {{conflicting types for parameter '…
122 static_assert(same_type<decltype(l), std::initializer_list<int>>::value, ""); in auto_deduction()
131 new std::initializer_list<int>{1, 2, 3}; // expected-warning {{at the end of the full-expression}} in dangle()
135 std::initializer_list<int> il = {1, 2, 3}; // expected-warning{{at the end of the constructor}}
136 std::initializer_list<int> jl{1, 2, 3}; // expected-warning{{at the end of the constructor}}
146 template<typename T> void f(std::initializer_list<T>);
147 template<typename T> void g(std::initializer_list<std::initializer_list<T>>);
152 std::initializer_list<int> il = {1, 2}; in foo()
159 void f(std::initializer_list<T>) { in f()
167 std::initializer_list<const char *> *il = &x; in g()
176 X(std::initializer_list<int>, T);
186 XCtorInit(std::initializer_list<X<int>>);
199 void f(std::initializer_list<int[2]>) {} in f()
200 void f(std::initializer_list<int[2][2]>) = delete;
209 template<typename T> void g(std::initializer_list<T>);
222 std::initializer_list<X> x{1}; // expected-error {{invokes deleted constructor}}
228 void f(std::initializer_list<S>);
234 …std::initializer_list<long (*)()> x = {f}; // expected-error {{cannot initialize an array element …
239 S(std::initializer_list<int>);
247 A(std::initializer_list<A>);
248 A(std::initializer_list<int>);
269 A(std::initializer_list<int>); // expected-note {{here}}
275 std::initializer_list // expected-note {{constructor}}
283 void f(std::initializer_list<std::initializer_list<T>> ...tt);
294 std::initializer_list<T> ExplodeImpl(F p1, A<int, I...>) { in ExplodeImpl()