* include/tr1_impl/regex (match_results): Add cbegin()/cend() per N2691 WD.
authorStephen M. Webb <stephenw@xandros.com>
Thu, 7 Aug 2008 15:06:28 +0000 (15:06 +0000)
committerStephen M. Webb <smw@gcc.gnu.org>
Thu, 7 Aug 2008 15:06:28 +0000 (15:06 +0000)
From-SVN: r138842

libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1_impl/regex

index 2a4e4adfa3144691a79788d2e4b6fbf10c55bcdc..8acde4bf563525d85cbf64d1237b23ef9b85ab3c 100644 (file)
@@ -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
index d5e80b1b06517f24148782d8884d2f5a0f07241e..bd178dba1d4ff604df58a0eb15b85bdc11b81e82 100644 (file)
@@ -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.