stlab.adobe.com Adobe Systems Incorporated

swap_ranges.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /*************************************************************************************************/
00008 
00009 #ifndef ADOBE_ALGORITHM_SWAP_RANGES_HPP
00010 #define ADOBE_ALGORITHM_SWAP_RANGES_HPP
00011 
00012 #include <adobe/config.hpp>
00013 
00014 #include <boost/range/begin.hpp>
00015 #include <boost/range/end.hpp>
00016 
00017 #include <algorithm>
00018 
00019 /*************************************************************************************************/
00020 
00021 namespace adobe {
00022 
00023 /*************************************************************************************************/
00031 /*************************************************************************************************/
00037 template <class ForwardRange1, class ForwardIterator2>
00038 inline ForwardIterator2 swap_ranges(ForwardRange1& range1, ForwardIterator2 first2)
00039 {
00040     return std::swap_ranges(boost::begin(range1), boost::end(range1), first2);
00041 }
00042 
00043 /*************************************************************************************************/
00044 
00045 } // namespace adobe
00046 
00047 /*************************************************************************************************/
00048 
00049 #endif
00050 
00051 /*************************************************************************************************/

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