Xport Interface: document::descendant_end

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

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

Parameters

None

Returns

Returns a descendant_iterator, (or const_descendant_iterator in the 2nd variety), which points just past the last descendant markup object in the document. By nature of pre-order traversals, this the last pre-order descendant node would be the right most descendant node at the deepest level.

Remarks

This operation is normally used to mark the end of a descendant iteration. For this to work properly, the descendant iterator should be compared to descendant_end(). When this condition is true, the descendant iterator has already reached the end. This is consistant with the iterators of the STL.

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.