Xport Interface: markup::size

Returns the number of child markup objects contained in the called markup object.

markup::size_type markup::size();

Parameters

None

Returns

Returns the number of child markup objects contained within the called markup object.

Remarks

This operation is used to determine the number of children in the called markup object. The operation is only relevant when called on derived element objects, since element is the only type derived from markup which can contain other markup objects. If called on a derived element object, returns the number of children in the element.

This operation always returns 0 when called from any markup derived type other than element, which includes pcdata, comment, and procinstr.

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.