c++ - Do I need to manually declare >= and <= operators? -


if have operator > , operator < defined (and operator ==), need define operator >= , operator <=, or compiler declare them me if intentionally don't declare them?

also, if have operator == defined, compiler declare operator != me?

no, compiler won't declare/define of operators did not define manually. however, boost.operators might liking - want compiler do.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -