| 112 | Not_TriviallyDestructible>); |
| 113 | |
| 114 | int main() |
| 115 | { |
| 116 | static_assert( |
| 117 | not std::is_copy_constructible_v<optional<NotCopyable>>); |
| 118 | static_assert(std::is_copy_constructible_v<optional<int>>); |
| 119 | |
| 120 | static_assert(not std::is_trivially_destructible_v< |
| 121 | optional<Not_TriviallyDestructible>>); |
| 122 | static_assert( |
| 123 | std::is_trivially_destructible_v<optional<int>>); |
| 124 | static_assert(std::is_trivially_destructible_v< |
| 125 | optional<TriviallyDestructible>>); |
| 126 | |
| 127 | optional<Not_TriviallyDestructible> no{}; |
| 128 | optional<COMLike> o{}; |
| 129 | optional<COMLikeTrivial> ot{}; |
| 130 | optional<TriviallyDestructible> otd{}; |
| 131 | } |
nothing calls this directly
no outgoing calls
no test coverage detected