Sprout/sprout/optional/nullopt.hpp

19 lines
391 B
C++
Raw Normal View History

2012-10-26 08:38:48 +00:00
#ifndef SPROUT_OPTIONAL_NULLOPT_HPP
#define SPROUT_OPTIONAL_NULLOPT_HPP
#include <sprout/config.hpp>
#include <sprout/none.hpp>
namespace sprout {
//
// nullopt_t
// nullopt
2012-10-26 08:38:48 +00:00
//
typedef sprout::none_t nullopt_t;
namespace {
SPROUT_STATIC_CONSTEXPR nullopt_t nullopt{};
} // anonymous-namespace
} // namespace sprout
#endif // #ifndef SPROUT_OPTIONAL_NULLOPT_HPP