Parcourir la source

[1975] Docs: Lifetime and ownership of a pointer

Michal 'vorner' Vaner il y a 13 ans
Parent
commit
6adafccee8
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/lib/datasrc/container.h

+ 4 - 0
src/lib/datasrc/container.h

@@ -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.