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