Skip to content

Instantly share code, notes, and snippets.

View gagolews's full-sized avatar
🙃
No worries!

Marek Gagolewski gagolews

🙃
No worries!
View GitHub Profile
@gagolews
gagolews / structs_as_functions.cpp
Last active November 19, 2020 20:55
operator() for structs in C++
#include <iostream>
#include <vector>
using namespace std;
// an illustration for my Julia-related question on julia-users
struct datfun {
// some data
vector<double> x;
vector<double> y;