0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd: Comment on ctype(string_view).

This commit is contained in:
Jason Volk 2017-12-23 18:00:43 -07:00
parent cd4586e780
commit ae8a8e736a

View file

@ -273,6 +273,9 @@ ircd::data(const string_view &str)
return str.data();
}
/// ctype test for a string_view. Returns the character position where the
/// test fails. Returns -1 on success. The test is a function specified in
/// the template simply as `ctype<std::isprint>(string_view{"hi"});`
template<int (&test)(int)>
auto
ircd::ctype(const string_view &s)