📄 ope_9772.htm
字号:
<HTML><TITLE>operator!=, operator>, operator<=, operator>=</TITLE><BODY>
<A HREF="ref.htm"><IMG SRC="images/banner.gif"></A>
<P><STRONG>Click on the banner to return to the Class Reference home page.</STRONG></P>
<P>©Copyright 1996 Rogue Wave Software</P>
<H2>operator!=, operator>, operator<=, operator>=</H2>
<HR><PRE> Utility Operators</PRE><HR>
<A NAME="Summary"><H3>Summary</H3></A>
<P>Operators for the C++ Standard Template Library</P>
<H3>Contents</H3>
<UL>
<A HREF="#Synopsis"><LI>Synopsis</LI></A>
<A HREF="#Description"><LI>Description</LI></A>
</UL>
<A NAME="Synopsis"><H3>Synopsis</H3></A>
<PRE>#include <utility></PRE>
<PRE>
template <class T>
bool <B>operator!=</B> (const T&, const T&);
template <class T>
bool <B>operator></B> (const T&, const T&);
template <class T>
bool <B>operator<=</B> (const T&, const T&);
template <class T>
bool <B>operator>=</B> (const T&, const T&);</PRE>
<A NAME="Description"><H3>Description</H3></A>
<P>To avoid redundant definitions of <SAMP>operator!=</SAMP> out of <SAMP>operator==</SAMP> and of <SAMP>operators ></SAMP>, <SAMP><=</SAMP>, and <SAMP>>= </SAMP>out of <SAMP>operator<</SAMP>, the library provides these definitions: </P>
<PRE> operator!= returns !(x==y),
operator> returns y<x,
operator<= returns !(y<x), and
operator>= returns !(x<y).
</PRE>
<HR>
<A HREF="num_5679.htm"><IMG SRC="images/prev.gif"></A> <A HREF="ref.htm#contents"><IMG SRC="images/toc.gif"></A> <A HREF="ost_2238.htm"><IMG SRC="images/next.gif"></A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -