C++ Portable Types Library (PTypes) Version 1.7

Top: Basic types: Lists: objlist: Constructors/destructors

#include <ptypes.h>

objlist::objlist(bool ownobjects);
virtual objlist::~objlist();

objlist::objlist() -- the default constructor, creates an object list which does not own objects.

objlist::objlist(bool ownobjects) -- with this constructor the caller can explicitly specify whether the list owns objects. This feature is set only during construction of an object list and can not be changed later.

objlist::~objlist() -- frees the dynamic array. The member objects are destroyed only if the list was created with ownobjects parameter set to true.

See also: Manipulation

PTypes home