Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
generate.hpp
Go to the documentation of this file.
1/*
2 Copyright 2013 Adobe
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5*/
6/**************************************************************************************************/
7
8#ifndef ADOBE_ALGORITHM_GENERATE_HPP
9#define ADOBE_ALGORITHM_GENERATE_HPP
10
11#include <adobe/config.hpp>
12
13#include <algorithm>
14#include <iterator>
15
16/**************************************************************************************************/
17
18namespace adobe {
19
20/**************************************************************************************************/
28/**************************************************************************************************/
34template <class ForwardRange, class Generator>
35inline void generate(ForwardRange& range, Generator gen) {
36 std::generate(std::begin(range), std::end(range), gen);
37}
38
39/**************************************************************************************************/
40
41} // namespace adobe
42
43/**************************************************************************************************/
44
45#endif
46
47/**************************************************************************************************/
void generate(ForwardRange &range, Generator gen)
generate implementation
Definition generate.hpp:35