mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
ircd::util: Add a classic is_zero functor.
This commit is contained in:
parent
14e5306713
commit
9b1e76e242
1 changed files with 9 additions and 0 deletions
|
@ -1163,5 +1163,14 @@ struct unlock_guard
|
|||
};
|
||||
|
||||
|
||||
struct is_zero
|
||||
{
|
||||
bool operator()(const size_t &value) const
|
||||
{
|
||||
return value == 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
} // namespace util
|
||||
} // namespace ircd
|
||||
|
|
Loading…
Reference in a new issue