/usr/include/boost/multiprecision/detail
Edit: /usr/include/boost/multiprecision/detail/constexpr.hpp (1113B)
///////////////////////////////////////////////////////////////
// Copyright 2019 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
#ifndef BOOST_MP_CONSTEXPR_HPP
#define BOOST_MP_CONSTEXPR_HPP
#include
namespace boost {
namespace multiprecision {
namespace std_constexpr {
template
inline BOOST_CXX14_CONSTEXPR void swap(T& a, T& b)
{
T t(a);
a = b;
b = t;
}
template
inline BOOST_CXX14_CONSTEXPR OutputIterator copy(InputIterator first, InputIterator last, OutputIterator result)
{
while (first != last)
{
*result = *first;
++first;
++result;
}
return result;
}
template
inline BOOST_CXX14_CONSTEXPR bool equal(const I* first, const I* last, const I* other)
{
while (first != last)
{
if (*first != *other)
return false;
++first;
++other;
}
return true;
}
}
}
} // namespace boost::multiprecision::std_constexpr
#endif