0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::json::value: Inline trivial indirections.

This commit is contained in:
Jason Volk 2020-08-05 17:26:41 -07:00
parent 5774c849bb
commit 9f09eb6581
2 changed files with 12 additions and 12 deletions

View file

@ -348,3 +348,15 @@ ircd::json::operator!=(const value &a, const value &b)
{
return !operator==(a, b);
}
inline bool
ircd::json::defined(const value &a)
{
return !a.undefined();
}
inline enum ircd::json::type
ircd::json::type(const value &a)
{
return static_cast<enum json::type>(a.type);
}

View file

@ -4081,18 +4081,6 @@ ircd::json::serialized(const bool &b)
return b? t : f;
}
bool
ircd::json::defined(const value &a)
{
return !a.undefined();
}
enum ircd::json::type
ircd::json::type(const value &a)
{
return static_cast<enum json::type>(a.type);
}
//
// value::value
//