fork download
  1. #include <algorithm>
  2. #include <functional>
  3. #include <vector>
  4.  
  5. template <typename T>
  6. bool any_empty(const std::vector<std::vector<T>> vecs) {
  7. return std::any_of(vecs.begin(), vecs.end(),
  8. std::bind(&std::vector<T>::empty, std::placeholders::_1));
  9. }
  10.  
  11. int main() {
  12. std::vector<std::vector<int>> vecs;
  13. any_empty(vecs);
  14. return 0;
  15. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty