mirror of
https://github.com/matrix-construct/construct
synced 2025-01-20 11:31:51 +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 util
|
||||||
} // namespace ircd
|
} // namespace ircd
|
||||||
|
|
Loading…
Add table
Reference in a new issue