mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd: Add an adl's size(string_view).
This commit is contained in:
parent
a46bba20a5
commit
aeef1aeef5
1 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,7 @@ namespace ircd
|
||||||
|
|
||||||
template<int (&test)(int) = std::isprint> auto ctype(const string_view &s);
|
template<int (&test)(int) = std::isprint> auto ctype(const string_view &s);
|
||||||
|
|
||||||
|
size_t size(const string_view &);
|
||||||
bool operator!(const string_view &);
|
bool operator!(const string_view &);
|
||||||
bool defined(const string_view &);
|
bool defined(const string_view &);
|
||||||
bool null(const string_view &);
|
bool null(const string_view &);
|
||||||
|
@ -319,6 +320,12 @@ ircd::defined(const string_view &str)
|
||||||
return str.defined();
|
return str.defined();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline size_t
|
||||||
|
ircd::size(const string_view &str)
|
||||||
|
{
|
||||||
|
return str.size();
|
||||||
|
}
|
||||||
|
|
||||||
template<int (&test)(int)>
|
template<int (&test)(int)>
|
||||||
auto
|
auto
|
||||||
ircd::ctype(const string_view &s)
|
ircd::ctype(const string_view &s)
|
||||||
|
|
Loading…
Reference in a new issue