Create a gist now

Instantly share code, notes, and snippets.

@thiagomg /lambda.cpp
Last active Aug 30, 2015

What would you like to do?
Lambda - Functor
template<typename T>
class F {
T &_b;
F(T &b) : _b(b) { }
auto operator()(T v) {
return v * _b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment