Talk:cpp/algorithm/generate n

I take it that the use of std::ref in the example is because the function is allowed to make copies? Maybe this should be stated explicitly? 194.74.130.171 05:29, 14 June 2021 (PDT)