brintos

brintos / llvm-project-archived public Read only

0
0
Text · 518 B · ccca960 Raw
22 lines · plain
1//  (C) Copyright Matt Borland 2021.2//  Use, modification and distribution are subject to the3//  Boost Software License, Version 1.0. (See accompanying file4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)5 6#ifndef BOOST_MATH_CCMATH_DETAIL_SWAP_HPP7#define BOOST_MATH_CCMATH_DETAIL_SWAP_HPP8 9namespace boost::math::ccmath::detail {10 11template <typename T>12inline constexpr void swap(T& x, T& y) noexcept13{14    T temp = x;15    x = y;16    y = temp;17}18 19}20 21#endif // BOOST_MATH_CCMATH_DETAIL_SWAP_HPP22