]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/ext/numeric
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / include / ext / numeric
index b389177f374654feafed876b591d6dbbc2e481fc..1123694e6865ddeeb58b64a020b74537d941548c 100644 (file)
@@ -1,6 +1,6 @@
 // Numeric extensions -*- C++ -*-
 
-// Copyright (C) 2002, 2004, 2005, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2002-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
@@ -58,6 +58,8 @@
 
 #pragma GCC system_header
 
+#include <bits/requires_hosted.h> // GNU extensions are currently omitted
+
 #include <bits/concept_check.h>
 #include <numeric>
 
@@ -123,7 +125,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     power(_Tp __x, _Integer __n)
     { return __power(__x, __n); }
 
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
+#if __cplusplus >= 201103L
   using std::iota;
 #else
   /**
@@ -131,7 +133,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
    *  @ingroup SGIextensions
    *  @doctodo
   */
-  // iota is not part of the C++ standard.  It is an extension.
+  // iota is not part of the standard until C++11.  It is an extension.
   template<typename _ForwardIter, typename _Tp>
     void
     iota(_ForwardIter __first, _ForwardIter __last, _Tp __value)
@@ -144,7 +146,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       while (__first != __last)
        *__first++ = __value++;
     }
-#endif  // __GXX_EXPERIMENTAL_CXX0X__
+#endif  // C++11
 
 _GLIBCXX_END_NAMESPACE_VERSION
 } // namespace