int main() {
 int n = 0;
 count_if(input, input + 7, logical_not‹bool›(), n);
 cout ‹‹ 'count = ' ‹‹ n ‹‹ endl;
 return 0;
}
bnegate2.cpp
#include ‹iostream.h›
#include ‹stl.h›
int array[4] = {4, 9, 7, 1};
int main() {
 sort(array, array + 4, not2(greater‹int›()));
 for (int i = 0; i ‹ 4; i++) cout ‹‹ array[i] ‹‹ endl;
 return 0;
}
queue1.cpp
#include ‹iostream.h›
#include ‹stl.h›
int main() {
 queue‹list‹int› › q;
 q.push(42);
 q.push(101);
 q.push(69);
 while (!q.empty()) {
  cout ‹‹ q.front() ‹‹ endl;
  q.pop();
 }
 return 0;
}
stack1.cpp
#include ‹iostream.h›
#include ‹stl.h›
int main() {
 stack‹deque‹int› › s;
 s.push(42);
 s.push(101);
 s.push(69);
 while (!s.empty()) {
  cout ‹‹ s.top() ‹‹ endl;
  s.pop();
 }
 return 0;
}
greateq.cpp
#include ‹iostream.h›
#include ‹stl.h›
int array[4] = {3, 1, 4, 2};
int main() {
 sort(array, array + 4, greater_equal‹int›());
 for (int i = 0; i ‹ 4; i++) cout ‹‹ array[i] ‹‹ endl;
 return 0;
}
stack2.cpp
#include ‹iostream.h›
#include ‹stl.h›
int main() {
 stack‹list‹int› › s;
 s.push(42);
 s.push(101);
 s.push(69);
 while (!s.empty()) {
  cout ‹‹ s.top() ‹‹ endl;
  s.pop();
 }
 return 0;
}
lesseq.cpp
