Extends IPtr to allow comparison in containers.
More...
#include <fcontainer.h>
Detailed Description
template<class I>
class Steinberg::FComparablePtr< I >
Extends IPtr to allow comparison in containers.
When an implementation of FObject defines operators== and a lookup in a container should compare object data instead of addresses, FComparablePtr can be used instead of IPtr.
Example:
TArray <FComparablePtr <StringObject> > strings;
StringObject* test = new StringObject ("test");
strings.add (test);
test->release ();
StringObject tmp ("test");
StringObject* lookup = strings.lookup (&tmp);
Constructor & Destructor Documentation
Member Function Documentation