| 25 | double getHeight() const { return m_height; } |
| 26 | |
| 27 | std::partial_ordering operator<=>(const Box& otherBox) const |
| 28 | { |
| 29 | return volume() <=> otherBox.volume(); |
| 30 | } |
| 31 | std::partial_ordering operator<=>(double otherVolume) const |
| 32 | { |
| 33 | return volume() <=> otherVolume; |