types/description: add equality operator
This commit is contained in:
parent
cb9e5a74b4
commit
effab40a14
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user