diff options
author | rubidium <rubidium@openttd.org> | 2006-09-04 20:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-09-04 20:40:33 +0000 |
commit | 63687763e9680663e68754b47ee9f1511641faf8 (patch) | |
tree | b1e52d993ce60e919358d998b36ea08adfe26cba /yapf/autocopyptr.hpp | |
parent | a7cfb80c40d9a4c544ece10872fd3808f9f59f8d (diff) | |
download | openttd-63687763e9680663e68754b47ee9f1511641faf8.tar.xz |
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
-Cleanup: whitespace alignment of a few tables.
Diffstat (limited to 'yapf/autocopyptr.hpp')
-rw-r--r-- | yapf/autocopyptr.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yapf/autocopyptr.hpp b/yapf/autocopyptr.hpp index 46c727789..42822c324 100644 --- a/yapf/autocopyptr.hpp +++ b/yapf/autocopyptr.hpp @@ -4,16 +4,16 @@ #define AUTOCOPYPTR_HPP /** CAutoCopyPtrT - kind of CoW (Copy on Write) pointer. - It is non-invasive smart pointer (reference counter is held outside - of Tdata). - When copied, its new copy shares the same underlaying structure Tdata. - When dereferenced, its behavior depends on 2 factors: - - whether the data is shared (used by more than one pointer) - - type of access (read/write) - When shared pointer is dereferenced for write, new clone of Tdata - is made first. - Can't be used for polymorphic data types (interfaces). -*/ + * It is non-invasive smart pointer (reference counter is held outside + * of Tdata). + * When copied, its new copy shares the same underlaying structure Tdata. + * When dereferenced, its behavior depends on 2 factors: + * - whether the data is shared (used by more than one pointer) + * - type of access (read/write) + * When shared pointer is dereferenced for write, new clone of Tdata + * is made first. + * Can't be used for polymorphic data types (interfaces). + */ template <class Tdata_> class CAutoCopyPtrT { protected: |