If not empty, destroys the contained object.
| 156 | |
| 157 | /// If not empty, destroys the contained object. |
| 158 | void clear() noexcept |
| 159 | { |
| 160 | if(!empty()) |
| 161 | { |
| 162 | this->vtable->destroy(storage); |
| 163 | this->vtable = nullptr; |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | /// Returns true if *this has no contained object, otherwise false. |
| 168 | bool empty() const noexcept |
no test coverage detected