0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::json::tuple: Inline constructors.

This commit is contained in:
Jason Volk 2020-08-04 15:50:04 -07:00
parent 20d7a8ee62
commit 4e14c9c835

View file

@ -187,6 +187,7 @@ namespace json {
template<class... T> template<class... T>
template<class U> template<class U>
inline
tuple<T...>::tuple(const json::object &object, tuple<T...>::tuple(const json::object &object,
const json::keys<U> &keys) const json::keys<U> &keys)
:source :source
@ -200,6 +201,7 @@ tuple<T...>::tuple(const json::object &object,
} }
template<class... T> template<class... T>
inline
tuple<T...>::tuple(const json::object &object) tuple<T...>::tuple(const json::object &object)
:source :source
{ {
@ -211,6 +213,7 @@ tuple<T...>::tuple(const json::object &object)
} }
template<class... T> template<class... T>
inline
tuple<T...>::tuple(const json::iov &iov) tuple<T...>::tuple(const json::iov &iov)
{ {
for(const auto &[key, val] : iov) for(const auto &[key, val] : iov)
@ -218,6 +221,7 @@ tuple<T...>::tuple(const json::iov &iov)
} }
template<class... T> template<class... T>
inline
tuple<T...>::tuple(const json::members &members) tuple<T...>::tuple(const json::members &members)
{ {
for(const auto &[key, val] : members) for(const auto &[key, val] : members)
@ -226,6 +230,7 @@ tuple<T...>::tuple(const json::members &members)
template<class... T> template<class... T>
template<class U> template<class U>
inline
tuple<T...>::tuple(const tuple &t, tuple<T...>::tuple(const tuple &t,
const keys<U> &keys) const keys<U> &keys)
:source :source
@ -243,6 +248,7 @@ tuple<T...>::tuple(const tuple &t,
template<class... T> template<class... T>
template<class... U> template<class... U>
inline
tuple<T...>::tuple(const tuple<U...> &t) tuple<T...>::tuple(const tuple<U...> &t)
:source :source
{ {
@ -358,7 +364,7 @@ noexcept
#include "tool.h" #include "tool.h"
template<class... T> template<class... T>
ircd::json::tuple<T...>::operator inline ircd::json::tuple<T...>::operator
crh::sha256::buf() crh::sha256::buf()
const const
{ {
@ -378,7 +384,7 @@ const
} }
template<class... T> template<class... T>
ircd::json::tuple<T...>::operator inline ircd::json::tuple<T...>::operator
json::value() json::value()
const const
{ {