fork(2) download
  1. #include <algorithm>
  2. #include <bitset>
  3. #include <functional>
  4. #include <iostream>
  5. #include <vector>
  6.  
  7. using namespace std;
  8.  
  9. int main() {
  10. const vector<bool> foo(13, true);
  11.  
  12. cout << none_of(cbegin(foo), cend(foo), logical_not<bool>()) << endl;
  13.  
  14. const bitset<13U> bar(42UL);
  15.  
  16. cout << bar.all() << endl;
  17. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
1
0