mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 11:12:51 +01:00
ircd::json::tuple: Add inline linkages on keys templates.
This commit is contained in:
parent
4062d273e9
commit
f6f5809658
1 changed files with 10 additions and 9 deletions
|
@ -99,7 +99,7 @@ struct ircd::json::keys<T>::exclude
|
||||||
//
|
//
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void
|
inline void
|
||||||
ircd::json::keys<T>::selection::set(const string_view &key,
|
ircd::json::keys<T>::selection::set(const string_view &key,
|
||||||
const bool &val)
|
const bool &val)
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ ircd::json::keys<T>::selection::set(const string_view &key,
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void
|
inline void
|
||||||
ircd::json::keys<T>::selection::set(const size_t &pos,
|
ircd::json::keys<T>::selection::set(const size_t &pos,
|
||||||
const bool &val)
|
const bool &val)
|
||||||
{
|
{
|
||||||
|
@ -115,7 +115,7 @@ ircd::json::keys<T>::selection::set(const size_t &pos,
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
bool
|
inline bool
|
||||||
ircd::json::keys<T>::selection::has(const string_view &key)
|
ircd::json::keys<T>::selection::has(const string_view &key)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
@ -124,7 +124,7 @@ const
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
template<class it>
|
template<class it>
|
||||||
constexpr it
|
inline constexpr it
|
||||||
ircd::json::keys<T>::selection::transform(it i,
|
ircd::json::keys<T>::selection::transform(it i,
|
||||||
const it end)
|
const it end)
|
||||||
const
|
const
|
||||||
|
@ -144,7 +144,7 @@ const
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
template<class closure>
|
template<class closure>
|
||||||
constexpr void
|
inline constexpr void
|
||||||
ircd::json::keys<T>::selection::for_each(closure&& function)
|
ircd::json::keys<T>::selection::for_each(closure&& function)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
@ -157,7 +157,7 @@ const
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
template<class closure>
|
template<class closure>
|
||||||
constexpr bool
|
inline constexpr bool
|
||||||
ircd::json::keys<T>::selection::until(closure&& function)
|
ircd::json::keys<T>::selection::until(closure&& function)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
@ -174,13 +174,14 @@ const
|
||||||
//
|
//
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
inline
|
||||||
ircd::json::keys<T>::keys(const selection &selection)
|
ircd::json::keys<T>::keys(const selection &selection)
|
||||||
{
|
{
|
||||||
selection.transform(this->begin(), this->end());
|
selection.transform(this->begin(), this->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
ircd::json::keys<T>::operator
|
inline ircd::json::keys<T>::operator
|
||||||
vector_view<const string_view>()
|
vector_view<const string_view>()
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
@ -188,7 +189,7 @@ const
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
bool
|
inline bool
|
||||||
ircd::json::keys<T>::has(const string_view &key)
|
ircd::json::keys<T>::has(const string_view &key)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
@ -207,7 +208,7 @@ const
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
size_t
|
inline size_t
|
||||||
ircd::json::keys<T>::count()
|
ircd::json::keys<T>::count()
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue