generalized-initializers.cpp | 14 class initializer_list class in namespace:std 19 initializer_list(const _E* __b, size_t __s) function in class:std::initializer_list 33 initializer_list() : __begin_(nullptr), __size_(0) {} function in class:std::initializer_list 69 void initializer_list() { function in namespace:integral 70 std::initializer_list<int> il = { 1, 2, 3 }; 71 std::initializer_list<double> dl = { 1.0, 2.0, 3 }; 73 static_assert(same_type<decltype(l), std::initializer_list<int>>::value, ""); 95 A(std::initializer_list<int>) { static_assert(N == 3, ""); } 100 D(std::initializer_list<int>) { static_assert(N == 0, ""); } // expected-note 1 {{candidate}} 101 D(std::initializer_list<double>) { static_assert(N == 1, ""); } // expected-note 1 {{candidate} [all...] |