hackingcpp / comments

Comments regarding hackingcpp.com
0 stars 0 forks source link

cpp/std/algorithms/copying #7

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

C++ Standard Library Range Copy Algorithms | hacking C++

Introduction, examples and visual explanations of standard algorithms for copying ranges of elements.

https://hackingcpp.com/cpp/std/algorithms/copying.html

meinzer1899 commented 2 years ago

In the copy example, instead of

int const n = 5;

you can use

size_t const n = 5;