fork(1) download
  1. #include <vector>
  2.  
  3. template<class T, class F>
  4. auto f(std::vector<T> v, F fun) -> decltype(bool(fun(v[0])), void())
  5. {
  6. // ...
  7. }
  8.  
  9. int main(){
  10. std::vector<int> v;
  11. f(v, [](int){ return true; });
  12. }
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout

Standard output is empty