mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix optional
This commit is contained in:
parent
c8e2514d36
commit
f9d8908f95
5 changed files with 142 additions and 53 deletions
18
sprout/optional/nullopt.hpp
Normal file
18
sprout/optional/nullopt.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef SPROUT_OPTIONAL_NULLOPT_HPP
|
||||
#define SPROUT_OPTIONAL_NULLOPT_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/none.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// none_t
|
||||
// none
|
||||
//
|
||||
typedef sprout::none_t nullopt_t;
|
||||
namespace {
|
||||
SPROUT_STATIC_CONSTEXPR nullopt_t nullopt{};
|
||||
} // anonymous-namespace
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_OPTIONAL_NULLOPT_HPP
|
Loading…
Add table
Add a link
Reference in a new issue