0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd: Add an adl's size(string_view).

This commit is contained in:
Jason Volk 2017-09-29 22:58:04 -07:00
parent a46bba20a5
commit aeef1aeef5

View file

@ -37,6 +37,7 @@ namespace ircd
template<int (&test)(int) = std::isprint> auto ctype(const string_view &s);
size_t size(const string_view &);
bool operator!(const string_view &);
bool defined(const string_view &);
bool null(const string_view &);
@ -319,6 +320,12 @@ ircd::defined(const string_view &str)
return str.defined();
}
inline size_t
ircd::size(const string_view &str)
{
return str.size();
}
template<int (&test)(int)>
auto
ircd::ctype(const string_view &s)