Destroys the stored value if one exists, making the optional empty
| 1433 | |
| 1434 | /// Destroys the stored value if one exists, making the optional empty |
| 1435 | void reset() noexcept { |
| 1436 | if (has_value()) { |
| 1437 | this->m_value.~T(); |
| 1438 | this->m_has_value = false; |
| 1439 | } |
| 1440 | } |
| 1441 | }; // namespace sol |
| 1442 | |
| 1443 | /// \group relop |