![]() |
![]()
| ![]() |
![]()
NAMEQstl - support for Forall, Exists, etc in GNU C++ using STL SYNOPSIS#include <Qstl.h> bool AO(iter,container,exprn) /* Forall */ bool EO(iter,container,exprn) /* Exists */ bool E1O(iter,container,exprn) /* Exists a single */ bool CO(iter,container,exprn) /* Count */ DESCRIPTIONThese macros implement predicate calculus operations over Standard Template Library (STL) classes. For example: map<Location,Hatsize,Locationlt> m; AO(i,m,(*i).Hatsize >= 0) Note that the macros can be nested or used in any context that requires boolean values. PORTABILITYThese macros require GNU C or GNU C++. SEE ALSOnana-clg(1), nana(1), nana(3), I(3), DI(3), L(3), DL(3), Q(3), and nana.info. The nana.info page is the primary documentation for this package. AUTHORPhil Maker <pjm@gnu.org>
|