2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-24 06:02:12 +00:00

Regular null_t.

This commit is contained in:
Zach Laine
2018-09-28 19:55:21 -05:00
parent b894548871
commit 4f0c270483

View File

@@ -13,7 +13,11 @@ namespace boost { namespace json {
enum class value_kind { object, array, number, string, boolean, null };
struct null_t
{};
{
bool operator==(null_t) const noexcept { return true; }
bool operator!=(null_t) const noexcept { return false; }
bool operator<(null_t) const noexcept { return false; }
};
template<typename T>
T const & get(value const & v) noexcept;