// Core algorithmic facilities -*- C++ -*-
-// Copyright (C) 2020-2021 Free Software Foundation, Inc.
+// Copyright (C) 2020-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#if __cplusplus > 201703L
#include <compare>
-#include <bits/stl_iterator_base_types.h>
#include <bits/stl_iterator_base_funcs.h>
#include <bits/stl_iterator.h>
#include <bits/ranges_base.h> // ranges::begin, ranges::range etc.
{
auto [__in,__out]
= ranges::__copy_or_move<_IsMove>(__first.base(), __last.base(),
- __result);
+ std::move(__result));
return {decltype(__first){__in}, std::move(__out)};
}
else if constexpr (__is_normal_iterator<_Out>)
}
else if constexpr (sized_sentinel_for<_Sent, _Iter>)
{
-#ifdef __cpp_lib_is_constant_evaluated
- if (!std::is_constant_evaluated())
-#endif
+ if (!std::__is_constant_evaluated())
{
if constexpr (__memcpyable<_Iter, _Out>::__value)
{
}
else if constexpr (sized_sentinel_for<_Sent, _Iter>)
{
-#ifdef __cpp_lib_is_constant_evaluated
- if (!std::is_constant_evaluated())
-#endif
+ if (!std::__is_constant_evaluated())
{
if constexpr (__memcpyable<_Out, _Iter>::__value)
{
&& __is_byte<remove_pointer_t<_Out>>::__value
&& integral<_Tp>)
{
-#ifdef __cpp_lib_is_constant_evaluated
- if (!std::is_constant_evaluated())
-#endif
+ if (!std::__is_constant_evaluated())
{
__builtin_memset(__first,
static_cast<unsigned char>(__value),