News for hackers. Stuff that matters.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by abhishekjha on Sunday February 24, 2019 @12:11AM (#19237240)

    std::vector<int> v = {1, 2, 3, 4}

    std::copy(v.begin(), v.end(), std::ostream_iterator<int>(std::cout,” “));
Kinda long but gets the job done.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by ot on Sunday February 24, 2019 @01:12AM (#19237388)
Now do it when v is a vector of vectors.
Re:C++20 Design Is Complete: Modules, Coroutines in C++20 by klipt on Sunday February 24, 2019 @01:59AM (#19237491)
A single template implementation of vector allows vectors of vectors in the first place. Just add a single template print function.