1*700637cbSDimitry Andric //===----------------------------------------------------------------------===// 2*700637cbSDimitry Andric // 3*700637cbSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*700637cbSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*700637cbSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*700637cbSDimitry Andric // 7*700637cbSDimitry Andric //===----------------------------------------------------------------------===// 8*700637cbSDimitry Andric 9*700637cbSDimitry Andric #ifndef _LIBCPP___VECTOR_SWAP_H 10*700637cbSDimitry Andric #define _LIBCPP___VECTOR_SWAP_H 11*700637cbSDimitry Andric 12*700637cbSDimitry Andric #include <__config> 13*700637cbSDimitry Andric #include <__fwd/vector.h> 14*700637cbSDimitry Andric 15*700637cbSDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 16*700637cbSDimitry Andric # pragma GCC system_header 17*700637cbSDimitry Andric #endif 18*700637cbSDimitry Andric 19*700637cbSDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD 20*700637cbSDimitry Andric 21*700637cbSDimitry Andric template <class _Tp, class _Allocator> 22*700637cbSDimitry Andric _LIBCPP_CONSTEXPR_SINCE_CXX20 inline _LIBCPP_HIDE_FROM_ABI void swap(vector<_Tp,_Allocator> & __x,vector<_Tp,_Allocator> & __y)23*700637cbSDimitry Andricswap(vector<_Tp, _Allocator>& __x, vector<_Tp, _Allocator>& __y) _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) { 24*700637cbSDimitry Andric __x.swap(__y); 25*700637cbSDimitry Andric } 26*700637cbSDimitry Andric 27*700637cbSDimitry Andric _LIBCPP_END_NAMESPACE_STD 28*700637cbSDimitry Andric 29*700637cbSDimitry Andric #endif // _LIBCPP___VECTOR_SWAP_H 30