Added a ScopedPointer to public API 94/31994/5
authorAndrew Cox <andrew.cox@partner.samsung.com>
Fri, 12 Dec 2014 17:32:19 +0000 (17:32 +0000)
committerAndrew Cox <andrew.cox@partner.samsung.com>
Fri, 12 Dec 2014 17:57:19 +0000 (17:57 +0000)
commit18a926a63b0151b916d901e44d7777e99de06415
tree9505d004bb1da4a92a2fff979a21737c55d70c1f
parent3ffeaba3dd00d41086908f0a4bc4a00e2f604068
Added a ScopedPointer to public API

A simple template class to call delete on an owned pointer when it goes
out of scope, whether that be by ordinary return or stack unwind for
exception throw.

Change-Id: Id4a9f09d1f0b69f85131f771d48d87bcc137350b
Signed-off-by: Andrew Cox <andrew.cox@partner.samsung.com>
dali/public-api/common/scoped-pointer.h [new file with mode: 0644]