]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: Add static_ptr 19079/head
authorAdam C. Emerson <aemerson@redhat.com>
Tue, 21 Nov 2017 19:13:48 +0000 (14:13 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 28 Nov 2017 19:29:04 +0000 (14:29 -0500)
commit11f54d730d3574b795aa86cfca382a2a1ae2b1b8
treef04d07bd8c851d71d9b8d38614cbb045cfb09c61
parent2241b9da12e2715410fdf2494c170a219dc56403
common: Add static_ptr

Add static_ptr, a pointer-like class that contains its own storage,
avoiding use of the heap.

The full range of *_pointer_cast functions are included.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/static_ptr.h [new file with mode: 0644]
src/test/common/CMakeLists.txt
src/test/common/test_static_ptr.cc [new file with mode: 0644]