Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
swap_ranges.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_SWAP_RANGES_HPP
9#define ADOBE_ALGORITHM_SWAP_RANGES_HPP
10
11#include <adobe/config.hpp>
12
13#include <boost/range/begin.hpp>
14#include <boost/range/end.hpp>
15
16#include <algorithm>
17
18/**************************************************************************************************/
19
20namespace adobe {
21
22/**************************************************************************************************/
30/**************************************************************************************************/
36template <class ForwardRange1, class ForwardIterator2>
37inline ForwardIterator2 swap_ranges(ForwardRange1& range1, ForwardIterator2 first2) {
38 return std::swap_ranges(boost::begin(range1), boost::end(range1), first2);
39}
40
41/**************************************************************************************************/
42
43} // namespace adobe
44
45/**************************************************************************************************/
46
47#endif
48
49/**************************************************************************************************/
ForwardIterator2 swap_ranges(ForwardRange1 &range1, ForwardIterator2 first2)
swap_ranges implementation