types/description: add equality operator

This commit is contained in:
Danny Robson 2019-03-17 23:32:34 +11:00
parent cb9e5a74b4
commit effab40a14

View File

@ -36,6 +36,13 @@ namespace cruft::types {
std::size_t width; std::size_t width;
}; };
constexpr bool
operator== (description const &a, description const &b) noexcept
{
return a.category == b.category &&
a.width == b.width;
}
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
template <typename T> template <typename T>