codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <algorithm> #include <vector> struct foo { template<typename T> void operator()(T& t) { ++t; } }; int main() { std::vector<int> v; std::for_each(v.begin (),v.end(),foo()); return 0; }
Private
[
?
]
Run code
Submit