stlab.adobe.com Adobe Systems Incorporated
generate.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2005-2007 Adobe Systems Incorporated
3  Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
4  or a copy at http://stlab.adobe.com/licenses.html)
5 */
6 
7 /*************************************************************************************************/
8 
9 #ifndef ADOBE_ALGORITHM_GENERATE_HPP
10 #define ADOBE_ALGORITHM_GENERATE_HPP
11 
12 #include <adobe/config.hpp>
13 
14 #include <boost/range/begin.hpp>
15 #include <boost/range/end.hpp>
16 
17 #include <algorithm>
18 
19 /*************************************************************************************************/
20 
21 namespace adobe {
22 
23 /*************************************************************************************************/
31 /*************************************************************************************************/
37 template <class ForwardRange, class Generator>
38 inline void generate(ForwardRange& range, Generator gen)
39 {
40  std::generate(boost::begin(range), boost::end(range), gen);
41 }
42 
43 /*************************************************************************************************/
44 
45 } // namespace adobe
46 
47 /*************************************************************************************************/
48 
49 #endif
50 
51 /*************************************************************************************************/
void generate(ForwardRange &range, Generator gen)
generate implementation
Definition: generate.hpp:38

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google