public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] add doxygen comments to deleted functions
@ 2011-05-26  0:32 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2011-05-26  0:32 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

As discussed recently on the libstdc++ list ...

2011-05-26  Jonathan Wakely  <jwakely.gcc@gmail.com>

        * include/std/mutex: Add doxygen comments.


Tested x86_64-linux and committed to trunk

[-- Attachment #2: m.txt --]
[-- Type: text/plain, Size: 797 bytes --]

Index: include/std/mutex
===================================================================
--- include/std/mutex	(revision 174240)
+++ include/std/mutex	(working copy)
@@ -632,6 +632,7 @@
       bool		_M_owns; // XXX use atomic_bool
     };
 
+  /// Partial specialization for unique_lock objects.
   template<typename _Mutex>
     inline void
     swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept
@@ -759,9 +760,12 @@
     __native_type  _M_once;
 
   public:
+    /// Constructor
     constexpr once_flag() noexcept : _M_once(__GTHREAD_ONCE_INIT) { }
 
+    /// Deleted copy constructor
     once_flag(const once_flag&) = delete;
+    /// Deleted assignment operator
     once_flag& operator=(const once_flag&) = delete;
 
     template<typename _Callable, typename... _Args>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-25 23:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26  0:32 [v3] add doxygen comments to deleted functions Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).