Replace `Maybe` with `std::optional` (#7005)
authorAndres Noetzli <andres.noetzli@gmail.com>
Tue, 17 Aug 2021 18:18:16 +0000 (11:18 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 18:18:16 +0000 (18:18 +0000)
commit42b8e0a4fc5b23dfce79cbadc08a8aa8542997e0
tree080b4b48b245aa2f055033708b6788a92610ce55
parente8f18dd65c829c3c12158d57e1fc7d2c9dcdcfd4
Replace `Maybe` with `std::optional` (#7005)

Because we are now using C++17, we can get rid of Maybe and instead
use std::optional, which offers the same functionality.
21 files changed:
src/preprocessing/passes/pseudo_boolean_processor.cpp
src/preprocessing/passes/pseudo_boolean_processor.h
src/theory/arith/approx_simplex.cpp
src/theory/arith/approx_simplex.h
src/theory/arith/infer_bounds.cpp
src/theory/arith/infer_bounds.h
src/theory/arith/linear_equality.cpp
src/theory/arith/linear_equality.h
src/theory/arith/nl/poly_conversion.cpp
src/theory/arith/simplex_update.cpp
src/theory/arith/simplex_update.h
src/theory/arith/theory_arith_private.cpp
src/util/CMakeLists.txt
src/util/maybe.h [deleted file]
src/util/poly_util.cpp
src/util/poly_util.h
src/util/rational_cln_imp.cpp
src/util/rational_cln_imp.h
src/util/rational_gmp_imp.cpp
src/util/rational_gmp_imp.h
src/util/utility.h