| 20 | double getHeight() const { return m_height; } |
| 21 | |
| 22 | std::partial_ordering operator<=>(const Box& otherBox) const |
| 23 | { |
| 24 | return volume() <=> otherBox.volume(); |
| 25 | } |
| 26 | std::partial_ordering operator<=>(double otherVolume) const |
| 27 | { |
| 28 | return volume() <=> otherVolume; |