Browse Source

[1975] Docs: Lifetime and ownership of a pointer

Michal 'vorner' Vaner 13 years ago
parent
commit
6adafccee8
1 changed files with 4 additions and 0 deletions
  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.