From a15cf65c44d5c224169c32ef5495b68c758134b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 18 May 2014 16:08:14 +0200 Subject: Imported Upstream version 3.3.0.2 --- libcult/documentation/mm/index.xhtml | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 libcult/documentation/mm/index.xhtml (limited to 'libcult/documentation/mm/index.xhtml') diff --git a/libcult/documentation/mm/index.xhtml b/libcult/documentation/mm/index.xhtml new file mode 100644 index 0000000..8ed79d4 --- /dev/null +++ b/libcult/documentation/mm/index.xhtml @@ -0,0 +1,77 @@ + + + + + + + + + libcult/documentation/mm + + + + + + + + + + + + + + +
+

The libcult memory management library provides +non-intrusive reference counter and a couple of smart pointers.

+ +

It also overrides and overloads default memory management operators +(operator new and operator delete) to allow +special service objects (reference counter being one of them) to be +constructed in the memory block preceding the instance. This allows +transparent instrumentation of objects with a special +functionality like reference counting or locking.

+ +

The two flavors of smart pointers are exclusive (called +Evptr, from exclusive +pointer) and shared (called Shptr, +from shared pointer) pointers.

+ +

The exclusive pointer has semantics similar to std::auto_ptr +(i.e., exclusive ownership of the object pointed to) except that it performs +automatic copying of the object pointed to when copied or assigned to another +exclusive pointer. Built-in copy-on-write optimization eliminates unnecessary +copying when instances of exclusive pointers are returned from functions or +stored in containers.

+ +

The shared pointer has standard semantics of a reference-counting smart +pointer.

+
+ +
+

Copyright © 2005-2010 Boris Kolpackov.

+ +
+Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU Free +Documentation License, version 1.2; with no Invariant Sections, no +Front-Cover Texts and no Back-Cover Texts. +
+
+ + + -- cgit v1.2.3