Skip to content
Snippets Groups Projects
Commit 80fe2f01 authored by Sam Yates's avatar Sam Yates Committed by Ben Cumming
Browse files

Reduce differences between `util::optional` and `std::optional`. (#420)

Reduce differences between `util::optional` and `std::optional`.

* Rename `util::nothing` to `util::nullopt`.
* Replace `util::get()` by`util::optional::value()`.
* Add correct move semantics to `util::optional::value()`.
* Add `util::optional::value_or()` method.
* Remove unused monadic functionality from `util::optional` and `util::uninitialized`.
* Update code formatting to closer adhere to coding guidelines.
* Add convenience ""_s string constructor for unit tests.
* Update unit tests accordingly.

Fixes #419.
parent 25b0674d
No related branches found
No related tags found
No related merge requests found
Showing
with 297 additions and 380 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment