diff options
Diffstat (limited to 'include/o3tl/cow_wrapper.hxx')
-rw-r--r-- | include/o3tl/cow_wrapper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx index 7f11c55c136e..e7ca302468e3 100644 --- a/include/o3tl/cow_wrapper.hxx +++ b/include/o3tl/cow_wrapper.hxx @@ -74,8 +74,8 @@ namespace o3tl that, despite the fact that this template provides access to the wrapped type via pointer-like methods (<code>operator->()</code> and <code>operator*()</code>), it does - <em>not</em> work like e.g. the boost pointer wrappers - (shared_ptr, scoped_ptr, etc.). Internally, the cow_wrapper + <em>not</em> work like e.g. the std smart pointer wrappers + (shared_ptr, unique_ptr, etc.). Internally, the cow_wrapper holds a by-value instance of the wrapped object. This is to avoid one additional heap allocation, and providing access via <code>operator->()</code>/<code>operator*()</code> is because |