| 1 |
// (C) Copyright Matt Borland 2021. |
| 2 |
// Use, modification and distribution are subject to the |
| 3 |
// Boost Software License, Version 1.0. (See accompanying file |
| 4 |
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 |
|
| 6 |
#ifndef BOOST_MATH_CCMATH_DETAIL_SWAP_HPP |
| 7 |
#define BOOST_MATH_CCMATH_DETAIL_SWAP_HPP |
| 8 |
|
| 9 |
namespace boost::math::ccmath::detail { |
| 10 |
|
| 11 |
template <typename T> |
| 12 |
inline constexpr void swap(T& x, T& y) noexcept |
| 13 |
{ |
| 14 |
T temp = x; |
| 15 |
x = y; |
| 16 |
y = temp; |
| 17 |
} |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
#endif // BOOST_MATH_CCMATH_DETAIL_SWAP_HPP |