tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
generate_n.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename OutputIt, typename SizeT, typename Generator>
constexpr auto generate_n (OutputIt first, SizeT count, Generator g) -> OutputIt
 Assigns values, generated by given function object g, to the first count elements in the range beginning at first, if count > 0. Does nothing otherwise.