14.9.1 Integer comparison operators
来源:互联网 发布:互联网商业模式知乎 编辑:程序博客网 时间:2024/05/23 02:07
The predefined integer comparison operators are:
bool operator ==(int x, int y);
bool operator ==(uint x, uint y);
bool operator ==(long x, long y);
bool operator ==(ulong x, ulong y);
bool operator !=(int x, int y);
bool operator !=(uint x, uint y);
bool operator !=(long x, long y);
bool operator !=(ulong x, ulong y);
bool operator <(int x, int y);
bool operator <(uint x, uint y);
bool operator <(long x, long y);
bool operator <(ulong x, ulong y);
bool operator >(int x, int y);
bool operator >(uint x, uint y);
bool operator >(long x, long y);
bool operator >(ulong x, ulong y);
bool operator <=(int x, int y);
bool operator <=(uint x, uint y);
bool operator <=(long x, long y);
bool operator <=(ulong x, ulong y);
bool operator >=(int x, int y);
bool operator >=(uint x, uint y);
bool operator >=(long x, long y);
bool operator >=(ulong x, ulong y);
Each of these operators compares the numeric values of the two integer
operands and returns a bool value
that indicates whether the particular relation is true or false.
bool operator ==(int x, int y);
bool operator ==(uint x, uint y);
bool operator ==(long x, long y);
bool operator ==(ulong x, ulong y);
bool operator !=(int x, int y);
bool operator !=(uint x, uint y);
bool operator !=(long x, long y);
bool operator !=(ulong x, ulong y);
bool operator <(int x, int y);
bool operator <(uint x, uint y);
bool operator <(long x, long y);
bool operator <(ulong x, ulong y);
bool operator >(int x, int y);
bool operator >(uint x, uint y);
bool operator >(long x, long y);
bool operator >(ulong x, ulong y);
bool operator <=(int x, int y);
bool operator <=(uint x, uint y);
bool operator <=(long x, long y);
bool operator <=(ulong x, ulong y);
bool operator >=(int x, int y);
bool operator >=(uint x, uint y);
bool operator >=(long x, long y);
bool operator >=(ulong x, ulong y);
Each of these operators compares the numeric values of the two integer
operands and returns a bool value
that indicates whether the particular relation is true or false.
- 14.9.1 Integer comparison operators
- 14.9.3 Decimal comparison operators
- 14.9.5 Enumeration comparison operators
- 14.9.2 Floating-point comparison operators
- Bash Commands - Comparison Operators
- How to override comparison operators in Python
- Smallest of three integers without comparison operators
- Compare two ints without using comparison operators
- pointless comparison of unsigned integer with zero
- pointless comparison of unsigned integer with zero
- iOS:“warning:comparison between pointer and integer”
- 17.9.1 Unary operators
- Operators
- Operators
- Operators
- Operators
- Comparison between overloading operators in member function and in friend function
- integer addition in terms of bit operators, just for fun
- 白天,还是上不了网。
- 又一天熬到半夜
- ASP分页函数
- 关于session的详细解释
- 14.9 Relational & type-testing operators
- 14.9.1 Integer comparison operators
- 14.9.2 Floating-point comparison operators
- 14.9.3 Decimal comparison operators
- 14.9.4 Boolean equality operators
- 14.9.5 Enumeration comparison operators
- 14.9.6 Reference type equality operators
- 14.9.7 String equality operators
- 14.9.8 Delegate equality operators
- 14.9.9 The is operator