Xport Interface: stylesheet_item::operator []

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

declaration& stylesheet_item::operator[](1st Variety
  size_type n
);
const declaration& stylesheet::operator[](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 not exception safe. For an exception save indexed operation, use stylesheet_item::at().

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.

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.