Copyright (C) 2000-2012 |
Whole document tree logical_not<T>
DescriptionLogical_not<T> is a function object; specifically, it is an Adaptable Predicate, which means it is a function object that tests the truth or falsehood of some condition. If f is an object of class logical_not<T> and x is an object of class T (where T is convertible to bool) then f(x) returns true if and only if x is false.ExampleTransforms a vector of bool into its logical complement.vector<bool> V; ... transform(V.begin(), V.end(), V.begin(), logical_not<bool>()); DefinitionDefined in the standard header functional, and in the nonstandard backward-compatibility header function.h.Template parameters
Model ofAdaptable Predicate, DefaultConstructibleType requirementsT must be convertible to bool.Public base classesunary_function<T, bool>Members
NotesSee alsoThe function object overview, logical_or, logical_and.Copyright © 1999 Silicon Graphics, Inc. All Rights Reserved. TrademarkInformation
|