Xport Interface: markup::pop_back

For a derived element object, erases the last child element.

void markup::pop_back();

Parameters

None

Returns

Nothing

Remarks

This operation is revelant only if it is called on an element derived object. The behavior is undefined if called on a pcdata, comment, or procinstr object, or if called on an element object which has no children. Caller is responsible to insure this operation is called on only element derived objects which has at least one child markup object.

There is some misconseption of this operation's return value, as many assume that it erases the last element while returning it's value. This operation does not return the value of the erased markup object. If you need the value of the last markup object in an element, use the markup::back() 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.