aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen M. Webb <stephenw@xandros.com>2008-08-07 15:06:28 +0000
committerStephen M. Webb <smw@gcc.gnu.org>2008-08-07 15:06:28 +0000
commite297d9fe0df8e5b1fb5dee3700be0bf3c2894680 (patch)
treecec3272b123d2e4ece538f2d79395d27864a1c0c
parentbdfd20262bb831821d0f4a9daadc126f54b10521 (diff)
downloadgcc-e297d9fe0df8e5b1fb5dee3700be0bf3c2894680.zip
gcc-e297d9fe0df8e5b1fb5dee3700be0bf3c2894680.tar.gz
gcc-e297d9fe0df8e5b1fb5dee3700be0bf3c2894680.tar.bz2
* include/tr1_impl/regex (match_results): Add cbegin()/cend() per N2691 WD.
From-SVN: r138842
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/tr1_impl/regex22
2 files changed, 24 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 2a4e4ad..8acde4b 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-07 Stephen M. Webb <stephenw@xandros.com>
+
+ * include/tr1_impl/regex (match_results): Add cbegin()/cend() per N2691 WD.
+
2008-08-06 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_STDIO_MACROS]): New, checks for
diff --git a/libstdc++-v3/include/tr1_impl/regex b/libstdc++-v3/include/tr1_impl/regex
index d5e80b1..bd178db 100644
--- a/libstdc++-v3/include/tr1_impl/regex
+++ b/libstdc++-v3/include/tr1_impl/regex
@@ -1,6 +1,6 @@
// class template regex -*- C++ -*-
-// Copyright (C) 2007 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008 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
@@ -1765,13 +1765,31 @@ namespace regex_constants
begin() const
{ return _Base_type::begin(); }
+#ifdef _GLIBCXX_INCLUDE_AS_CXX0X
/**
- * @todo Document this function.
+ * @brief Gets an iterator to the start of the %sub_match collection.
+ */
+ const_iterator
+ cbegin() const
+ { return _Base_type::begin(); }
+#endif
+
+ /**
+ * @brief Gets an iterator to one-past-the-end of the collection.
*/
const_iterator
end() const
{ return _Base_type::end(); }
+#ifdef _GLIBCXX_INCLUDE_AS_CXX0X
+ /**
+ * @brief Gets an iterator to one-past-the-end of the collection.
+ */
+ const_iterator
+ cend() const
+ { return _Base_type::end(); }
+#endif
+
// [7.10.4] format
/**
* @todo Implement this function.