Nerd For Tech
Published in

Nerd For Tech

C++20 three way comparison operator: Part 6

image ©: gajendra gulgulia

In the fifth part of the tutorial series, I demonstrated the usage of std::strong_ordering comparison category as a return type for the three way operator. In the process, I clarified the meanings of terminologies like value of an object, salient properties and substitutablity. In the current part I’ll explain the usage of second comparison category, i.e., std::weak_ordering defined in the C++20’s new compare

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gajendra Gulgulia

Gajendra Gulgulia

I'm a backend software developer and from time to time I also like to explore web development