Introduce MaybeOwningPtr, a smart pointer that may (or may not) have
authorDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:09:22 +0000 (21:09 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:09:22 +0000 (21:09 +0000)
commit2ee35226e5940eed3d360fcfb37be7f3a4866f27
tree236d7621f9d9b3b18605056b3c4ce0931b69af9d
parent376ac434addd3b3652bf195c350463992e1df262
Introduce MaybeOwningPtr, a smart pointer that may (or may not) have
ownership over the pointer it contains. Useful when we want to
communicate ownership while still having several clients holding on to
the same pointer *without* introducing reference counting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100463 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/OwningPtr.h