]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1975] Docs: Lifetime and ownership of a pointer
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 12 Jun 2012 11:26:43 +0000 (13:26 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 12 Jun 2012 11:30:11 +0000 (13:30 +0200)
src/lib/datasrc/container.h

index 7915f470cf032cec52faa87ea323c4adc929ca37..2fafcfdefb28a46dcdecf49802f9d4b233e9191d 100644 (file)
@@ -99,6 +99,10 @@ public:
         ///
         /// The data source containing the best matching zone. If no such
         /// data source exists, this is NULL pointer.
+        ///
+        /// Note that the pointer is valid only as long the Container which
+        /// returned is alive and was not reconfigured. The ownership is
+        /// preserved within the Container.
         DataSourceClient* const datasrc_;
 
         /// \brief The finder for the requested zone.