#define FXAutoPtr

Defined as a FX::Generic::ptr<FX::Pol::destructiveCopy> which means it works semantically the same as std::auto_ptr. If you see this in a parameter list, it means that the API takes ownership of the pointer - deleting it if there's an exception as well as deleting it when done with the pointer. Usually functions accepting a FXAutoPtr check their input for zero, thus you can use new directly inside the API eg;

type *foo(FXAutoPtr<type> ptr);
...
type *handle=foo(new type);

Definition at line 2438 of file FXGenericTools.h.


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:31:30 2009 for TnFOX by doxygen v1.4.7