why scoped enum support operator < by default

why scoped enum support operator < by default

My understanding is that scoped enum needs to be cased into underlying type or integer then it can be applied to operator &lt; &gt; ==. But it looks code snippet above can work w/o any explicit overloadding operator &lt;.

enum class Number {one , two};
if (Number::one < Number::two)
{}

My understanding is that scoped enum needs to be cased into underlying type or integer then it can be applied to operator < > ==. But it looks code snippet above can work w/o any explicit overloadding operator <.

I don't see any descriptions in https://en.cppreference.com/w/cpp/language/enum

Anyone can point me how C++ standard says which operators are supported for scoped enum by default?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...