Xport Interface: markup::erase

When called from a derived element object, erases a child markup object, or range of markup objects.

markup::iterator markup::erase(1st Variety
  const markup::const_iterato& pos
);
markup::iterator markup::erase(2nd Variety
  const markup::const_iterator& beg,
  const markup::const_iterator& end
);

Parameters

pos

An iterator which points to a valid child node of the called element object.

beg

An iterator which points to the a valid child node of the element object, which will specify the beginning of the range of markup objects to be erased.

end

An iterator which points just past a valid child node of the element object, which will specify the end of the range of markup objects to be erased.

Returns

Returns an iterator pointing just past the last child markup object which was erased.

Remarks

This operation is revelant only if it is called on a derived element derived object, because element is the only type derived from markup which can contain children. This operation is used to erase a single child markup object, or a range of child markup objects from the called element. The caller must insure that valid positions, or ranges, are passed to the operation.

Complexity

Logarithmic

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.