Lines Matching refs:noexcept
40 static_assert(noexcept(IC0()), "IC0() does not throw");
41 static_assert(!noexcept(IC1()), "IC1() throws");
46 NoThrowMove(NoThrowMove &&) noexcept;
48 NoThrowMove &operator=(NoThrowMove &&) const noexcept;
51 NoThrowMoveOnly(NoThrowMoveOnly &&) noexcept;
52 NoThrowMoveOnly &operator=(NoThrowMoveOnly &&) noexcept;
63 static_assert(!noexcept(X(X::val())), "");
64 static_assert(!noexcept(X::ref() = X::val()), "");
72 ThrowingBase() noexcept(false);
73 ThrowingBase(const ThrowingBase&) noexcept(false);
74 ThrowingBase(ThrowingBase&&) noexcept(false);
75 ThrowingBase &operator=(const ThrowingBase&) noexcept(false);
76 ThrowingBase &operator=(ThrowingBase&&) noexcept(false);
77 ~ThrowingBase() noexcept(false);
80 Derived() noexcept(false) = default;
81 Derived(const Derived&) noexcept(false) = default;
82 Derived(Derived&&) noexcept(false) = default;
83 Derived &operator=(const Derived&) noexcept(false) = default;
84 Derived &operator=(Derived&&) noexcept(false) = default;
85 ~Derived() noexcept(false) = default;
87 static_assert(!noexcept(Derived()), "");
88 static_assert(!noexcept(Derived(static_cast<Derived&&>(d1))), "");
89 static_assert(!noexcept(Derived(d1)), "");
90 static_assert(!noexcept(d1 = static_cast<Derived&&>(d1)), "");
91 static_assert(!noexcept(d1 = d1), "");
100 static_assert(!noexcept(Derived2()), "");
101 static_assert(!noexcept(Derived2(static_cast<Derived2&&>(d2))), "");
102 static_assert(!noexcept(Derived2(d2)), "");
103 static_assert(!noexcept(d2 = static_cast<Derived2&&>(d2)), "");
104 static_assert(!noexcept(d2 = d2), "");
106 Derived3() noexcept(true) = default;
107 Derived3(const Derived3&) noexcept(true) = default;
108 Derived3(Derived3&&) noexcept(true) = default;
109 Derived3 &operator=(const Derived3&) noexcept(true) = default;
110 Derived3 &operator=(Derived3&&) noexcept(true) = default;
111 ~Derived3() noexcept(true) = default;
113 …static_assert(noexcept(Derived3(), Derived3(Derived3()), Derived3(d3), d3 = Derived3(), d3 = d3), …
130 Base(X<0>) noexcept(true);
131 Base(X<1>) noexcept(false);
149 static_assert(noexcept(Derived1(X<0>())), "");
150 static_assert(!noexcept(Derived1(X<1>())), "");
151 static_assert(!noexcept(Derived1(X<2>())), "");
152 static_assert(!noexcept(Derived2(X<0>())), "");
153 static_assert(!noexcept(Derived3(X<0>())), "");