mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: Add rfc1459::less overload on string pointers.
This commit is contained in:
parent
3be7557d53
commit
271aa22aee
1 changed files with 9 additions and 0 deletions
|
@ -72,6 +72,7 @@ using character::tolower;
|
|||
struct less
|
||||
{
|
||||
bool operator()(const std::string &a, const std::string &b) const;
|
||||
bool operator()(const std::string *const &a, const std::string *const &b) const;
|
||||
};
|
||||
|
||||
inline bool is_print(const char &c) { return is(c, character::PRINT); }
|
||||
|
@ -103,6 +104,14 @@ inline bool is_xdigit(const char &c)
|
|||
return is_digit(c) || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F');
|
||||
}
|
||||
|
||||
inline bool
|
||||
less::operator()(const std::string *const &a,
|
||||
const std::string *const &b)
|
||||
const
|
||||
{
|
||||
return operator()(*a, *b);
|
||||
}
|
||||
|
||||
inline bool
|
||||
less::operator()(const std::string &a,
|
||||
const std::string &b)
|
||||
|
|
Loading…
Reference in a new issue