Destroys the stored value if one exists, making the optional empty
| 4827 | |
| 4828 | /// Destroys the stored value if one exists, making the optional empty |
| 4829 | void reset() noexcept { |
| 4830 | if (has_value()) { |
| 4831 | this->m_value.~T(); |
| 4832 | this->m_has_value = false; |
| 4833 | } |
| 4834 | } |
| 4835 | }; // namespace sol |
| 4836 | |
| 4837 | /// \group relop |
no test coverage detected