20#ifndef SCRIPT_INTERFACE_NONE_HPP
21#define SCRIPT_INTERFACE_NONE_HPP
23#include <boost/serialization/access.hpp>
34 constexpr None() =
default;
35 constexpr None(std::nullptr_t) {}
41 constexpr operator bool()
const {
return false; }
44 friend boost::serialization::access;
45 template <
typename Archive>
46 void serialize(
Archive &,
long int )
const {}
Type to indicate no value in Variant.
constexpr None(std::nullptr_t)
constexpr bool operator==(None const &) const
constexpr bool operator<(None const &) const
constexpr bool operator!=(None const &) const
T get_value(Variant const &v)
Extract value of specific type T from a Variant.