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

ircd:Ⓜ️ Add overload for nothrow integral m::get w/ defaulting.

This commit is contained in:
Jason Volk 2020-02-19 12:36:01 -08:00
parent 860087b6ce
commit 24325c8fc1

View file

@ -38,6 +38,21 @@ namespace ircd::m
template<class T>
typename std::enable_if<std::is_integral<T>::value, T>::type
get(const event::idx &, const string_view &key);
template<class T>
typename std::enable_if<std::is_integral<T>::value, T>::type
get(std::nothrow_t, const event::idx &, const string_view &key, T ret);
}
template<class T>
typename std::enable_if<std::is_integral<T>::value, T>::type
ircd::m::get(std::nothrow_t,
const event::idx &event_idx,
const string_view &key,
T ret)
{
get(event_idx, key, ret);
return ret;
}
template<class T>