Xport Interface: markup::descendant_end

Returns a descendant iterator pointing just past the last pre-order descendant markup object in the called derived element.

markup::descendant_iterator markup::descendant_end();1st Variety
markup::const_descendant_iterator markup::descendant_end() const;2nd Variety

Parameters

None

Returns

Returns a descendant markup iterator (or const descendant iterator in the second variety) pointing just past the last pre-order descendant markup object in the called derived element.

Remarks

This operation is revelant only if it is called on a derived element object. This is because the element is the only type derived from markup which can contain child markup objects. If the called markup object is a const object, a const_descendant_iterator will be returned. The descendant iterators traverse the document tree in a pre-order fashion. This operation returns a descendant_iterator, (or const_descendant_iterator in the 2nd variety), which points just past the last descendant markup object in the derived element. By nature of pre-order traversals, this the last pre-order descendant node would be the right most descendant node of the element at the deepest level.

Complexity

Constant

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.