Xport Interface: stylesheet_item::at

Returns a reference (or const reference in the 2nd variety) to the declaration at the specified index.

declaration& stylesheet_item::at(1st Variety
  size_type n
);
const declaration& stylesheet::at(2nd Variety
  size_type n
) const;

Parameters

n

An index specifying the declaration to return.

Returns

A reference (or const reference in the 2nd variety) of the declaration which resides at the specified index.

Remarks

Returns a reference (or const reference in the 2nd variety) of the declaration which resides at the specified index. Caller must insure that n is in a valid range. This operation is exception safe. If n is out of valid range, a std::out_of_range exception will be thrown.

This is one of the operations of stylesheet_item which is relevent only when called on a stylesheet_rule., since only stylesheet_rules can include declarations. When called on a stylesheet_import or stylesheet_comment, this operation always throws a std::out_of_range exception.

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.