0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-08 19:48:36 +02:00

ircd::util: Add a classic is_zero functor.

This commit is contained in:
Jason Volk 2017-10-11 17:48:53 -07:00
parent 14e5306713
commit 9b1e76e242

View file

@ -1163,5 +1163,14 @@ struct unlock_guard
};
struct is_zero
{
bool operator()(const size_t &value) const
{
return value == 0;
}
};
} // namespace util
} // namespace ircd