Xport Interface: stylesheet_item::begin

For a called stylesheet_rule, returns a stylesheet_item iterator pointing to the first declaration in the rule.

stylesheet_item::iterator stylesheet_item::begin();1st Variety
stylesheet_item::const_iterator stylesheet_item::begin() const;2nd Variety

Parameters

none

Returns

For a called stylesheetrule, returns a stylesheet_item iterator (or const_iterator in the second variety) pointing to the first declaration in the stylesheet rule. If there are no declarations in the stylesheet rule, or if this operation is called on a stylesheet_import or stylesheet_comment, returns stylesheet_item::end().

Remarks

stylesheet_Item iterators can be used to traverse the declarations in a stylesheet rule, and in standard algorithms. stylesheet_item::begin() returns an iterator which points to the first declaration object, if any, or stylesheet::end() if the stylesheet rule is empty.

This is one of the operations in stylesheete_item which is relevent only to the derived stylesheet_rule. When called on a derived stylesheet_import or stylesheet_comment, this operation always returns stylsheet_item::end().

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.