[gtkmm-documentation] Add description of _CUSTOM_MOVE_OPERATIONS macro



commit 208ba72b7474516e7d8e4e17eeb4d69e2d5e6a84
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Thu Oct 15 15:39:53 2015 +0200

    Add description of _CUSTOM_MOVE_OPERATIONS macro

 docs/tutorial/C/index-in.docbook |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/docs/tutorial/C/index-in.docbook b/docs/tutorial/C/index-in.docbook
index 633f576..fe90915 100644
--- a/docs/tutorial/C/index-in.docbook
+++ b/docs/tutorial/C/index-in.docbook
@@ -10097,6 +10097,30 @@ _MEMBER_GET_GOBJECT(layout, layout, Pango::Layout, PangoLayout*)
 </programlisting>
   </para>
 </sect3>
+
+<sect3 id="gmmproc-custom-move-operations">
+  <title>_CUSTOM_MOVE_OPERATIONS</title>
+  <para>
+    Use this macro if move constructor and move assignment operator must be hand-coded.
+  </para>
+  <para><function>_CUSTOM_MOVE_OPERATIONS</function></para>
+  <para>For example:
+<programlisting>
+class Derived : public Glib::Object
+{
+  _CLASS_GOBJECT(Derived, GDerived, G_DERIVED, Glib::Object, GObject)
+
+  _CUSTOM_MOVE_OPERATIONS
+
+public:
+  Derived(Derived&amp;&amp; src) noexcept;
+  Derived&amp; operator=(Derived&amp;&amp; src) noexcept;
+  // ...
+};
+</programlisting>
+  </para>
+</sect3>
+
 </sect2>
 
 <sect2 id="gmmproc-parameter-processing">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]