stlab.adobe.com Adobe Systems Incorporated
swap_ranges.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_SWAP_RANGES_HPP
10 #define ADOBE_ALGORITHM_SWAP_RANGES_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 ForwardRange1, class ForwardIterator2>
38 inline ForwardIterator2 swap_ranges(ForwardRange1& range1, ForwardIterator2 first2)
39 {
40  return std::swap_ranges(boost::begin(range1), boost::end(range1), first2);
41 }
42 
43 /*************************************************************************************************/
44 
45 } // namespace adobe
46 
47 /*************************************************************************************************/
48 
49 #endif
50 
51 /*************************************************************************************************/
ForwardIterator2 swap_ranges(ForwardRange1 &range1, ForwardIterator2 first2)
swap_ranges implementation
Definition: swap_ranges.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