📄 not_6483.htm
字号:
<HTML><TITLE>not1</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>not1</H2>
<HR><PRE> Function Adaptor</PRE><HR>
<A NAME="Summary"><H3>Summary</H3></A>
<P>Function adaptor used to reverse the sense of a unary predicate function object.</P>
<H3>Contents</H3>
<UL>
<A HREF="#Synopsis"><LI>Synopsis</LI></A>
<A HREF="#Description"><LI>Description</LI></A>
<A HREF="#See Also"><LI>See Also</LI></A>
</UL>
<A NAME="Synopsis"><H3>Synopsis</H3></A>
<PRE>#include <functional></PRE>
<PRE>
template<class Predicate>
unary_negate <Predicate> <B>not1</B> (const Predicate&);</PRE>
<A NAME="Description"><H3>Description</H3></A>
<P><B><I>not1</B></I> is a function adaptor, known as a negator, that takes a unary predicate function object as its argument and returns a unary predicate function object that is the complement of the original. <A HREF="una_8062.htm"><B><I>unary_negate</B></I></A> is a function object class that provides a return type for the <B><I>not1 </B></I>negator. </P>
<P>Note that <B><I>not1</B></I> works only with function objects that are defined as subclasses of the class <A HREF="una_4659.htm"><B><I>unary_function</B></I></A>.</P>
<A NAME="See Also"><H3>See Also</H3></A>
<P><A HREF="Neg_5086.htm"><B><I>Negators</B></I></A>, <A HREF="not_2978.htm"><B><I>not2</B></I></A>, <A HREF="una_4659.htm"><B><I>unary_function</B></I></A>, <A HREF="una_8062.htm"><B><I>unary_negate</B></I></A>, <A HREF="poi_7375.htm"><B><I>pointer_to_unary_function</B></I></A></P>
<HR>
<A HREF="nex_1756.htm"><IMG SRC="images/prev.gif"></A> <A HREF="ref.htm#contents"><IMG SRC="images/toc.gif"></A> <A HREF="not_2978.htm"><IMG SRC="images/next.gif"></A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -