From e6d52ecfa2379b1f7f3007e65ded5e4076abc5e9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 8 Jan 2010 17:01:08 +0200 Subject: Add support in buffer class for reusing existing buffer without freeing it --- documentation/cxx/tree/manual/index.xhtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'documentation') diff --git a/documentation/cxx/tree/manual/index.xhtml b/documentation/cxx/tree/manual/index.xhtml index a3e4c44..f1696c0 100644 --- a/documentation/cxx/tree/manual/index.xhtml +++ b/documentation/cxx/tree/manual/index.xhtml @@ -1511,8 +1511,9 @@ public: }; -

If the assume_ownership argument to the constructor - is true, the instance assumes ownership of the +

The last overloaded constructor reuses an existing data buffer instead + of making a copy. If the assume_ownership argument is + true, the instance assumes ownership of the memory block pointed to by the data argument and will eventually release it by calling operator delete. The capacity and size modifier functions return -- cgit v1.1