Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename T>
class Geo::GeoDeleteDestructor

A type for deleting objects of type T using GEO_DELETE.

This is for use in GeoAutoPtr and assumes the object has been allocated with GEO_NEW.

Functions

NameDescription
Delete(T *)

Primary policy method, deleting the object.

operator GeoDeleteDestructor< TOther >()

Allow conversion to other types, as we always expect the destructor to be virtual.


Anchor
af6cb3d1832f3e85f5f6f01ab85356b8d
af6cb3d1832f3e85f5f6f01ab85356b8d

static void Geo::GeoDeleteDestructor< T >::Delete

...

public: void Delete
(
    T * obj
)

...

Primary policy method, deleting the object.


Anchor
a4444c51eefb2537893cb2f0600faf1ab
a4444c51eefb2537893cb2f0600faf1ab

Geo::GeoDeleteDestructor< T >::operator GeoDeleteDestructor< TOther >

...

public: operator GeoDeleteDestructor< TOther >() const

...

Allow conversion to other types, as we always expect the destructor to be virtual.