mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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);
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue