h4tr3d / avcpp

C++ wrapper for FFmpeg
Other
429 stars 78 forks source link

`av::Rational`: define other relational operators #101

Closed jgcodes2020 closed 2 years ago

jgcodes2020 commented 2 years ago

Currently, av::Rational defines operator==, operator!=, and operator<. The underlying av_cmp_q function offers a 3-way compare and could be used to implement operator>, operator<=, operator>=, and (operator<=> (C++20)).