4 ms·
They're also not in the standard library. Not everyone can justify integrating Boost into their applications :(
by saagarjha 8y ago
They're also not in the standard library. Not everyone can justify integrating Boost into their applications :(
- Y_Y 8y agoYou can certainly do this with just the standard library and no boost, for example using iota from <numeric>. https://en.cppreference.com/w/cpp/algorithm/iota https://en.cppreference.com/w/cpp/algorithm/iota
- saagarjha 8y agoThat’s not a generator, though. You need to allocate an extra container for this to fill, which is inconvenient.