Will vector<int> be copied when f[0] is called?
#include <bits/stdc++.h>
using namespace std;
signed main() {
vector<function<void(const vector<int>)>> f = {
[&] (const vector<int>& v) -> void {
}
};
}
Spoiler
Why would anyone use vector<function> in CP?
This task with prefix sums for 8 types of triangles xD








