Freigeben über


swap_ranges (STL/CLR)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at swap_ranges (STL/CLR).

Exchanges the elements of one range with the elements of another, equal sized range.

Syntax

template<class _FwdIt1, class _FwdIt2> inline  
    _FwdIt2 swap_ranges(_FwdIt1 _First1, _FwdIt1 _Last1,  
        _FwdIt2 _First2);  

Remarks

This function behaves the same as the STL function swap_ranges. For more information, see swap_ranges.

Requirements

Header: <cliext/algorithm>

Namespace: cliext

See Also

algorithm (STL/CLR)