/* * Created on 2020-11-08 by Dirk-Jan C. Binnema * * Copyright (c) 2020 Logitech, Inc. All Rights Reserved * This program is a trade secret of LOGITECH, and it is not to be reproduced, * published, disclosed to others, copied, adapted, distributed or displayed * without the prior authorization of LOGITECH. * * Licensee agrees to attach or embed this notice on all copies of the program, * including partial copies or modified versions thereof. * */ #ifndef MU_OPTION__ #define MU_OPTION__ #include "optional.hpp" namespace Mu { /// Either a value of type T, or None template using Option = tl::optional; template Option Some(T&& t) { return std::move(t); } constexpr auto Nothing = tl::nullopt; // 'None' is take already } // namespace Mu #endif /*MU_OPTION__*/