aboutsummaryrefslogtreecommitdiff
path: root/test/common/ptr.h
AgeCommit message (Collapse)Author
2017-11-18TESTS: Remove unnecessary heap allocationColin Snover
2017-11-18COMMON: Add limited support for custom deleters to ScopedPtrColin Snover
Custom deleters of ScopedPtr are not currently fully conforming to C++11's support for custom deleters in std::unique_ptr for the sake of simplicity of implementation. Unlike in the standard library, plain functions and lvalue references are not supported, nor may custom deleters be passed to the constructor at runtime. This can be improved in the future, if necessary, by doing what standard library implementations usually do and creating a Pair class that uses the Empty Base Optimization idiom to avoid extra storage overhead of the deleter instance when it is not needed, as in typical standard library implementations, plus some additional type traits to support the necessary metaprogramming for the different type overloads.
2010-03-22Add simple testcase for ScopedPtr and SharedPtrMax Horn
The new test verifies that a given object is indeed deleted after the smart pointer leaves scope. svn-id: r48358
2009-05-19Converted unit tests to use TS_ASSERT_EQUALS / TS_ASSERT_DIFFERS where ↵Max Horn
possible; also made them comply a bit more to our code formatting guideline svn-id: r40722
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-07-29Added a reset method to SharedPtr, which allows NULLifying it.Johannes Schickel
svn-id: r33400
2008-03-30Added checks for implicit SharedPtr casting functionallity.Johannes Schickel
svn-id: r31329
2008-03-30- Added support for custom deletion operator (aka deleter) support for ↵Johannes Schickel
SharedPtr. - Removed two failing comparison tests of SharedPtr in our test suite (those were not supported according to our documentation anyway) svn-id: r31312
2008-03-29Document SharedPtr bool conversion operator; added test cases for it; also ↵Max Horn
added two test cases for the comparision operators, which currently fail svn-id: r31299
2008-03-28Committed shared pointer implementation of patch #1895703 "COMMON: Managed ↵Johannes Schickel
List". Unlike the patch on the tracker this commit includes documentation for SharedPtr. svn-id: r31287