testlib icon indicating copy to clipboard operation
testlib copied to clipboard

Make rnd.any return reference

Open demidenko opened this issue 1 year ago • 0 comments

Currently it returns copy and forcing to write ugly code like this

vector<vector<int>> v;
auto &a = v[rnd.next(size(v))];

instead of this

vector<vector<int>> v;
auto &a = rnd.any(v);

demidenko avatar Oct 12 '23 06:10 demidenko