Xport Interface: stylesheet_item::end
Returns a stylesheet_item
end iterator.
stylesheet_item::iterator stylesheet_item::end();1st Variety
stylesheet_item::const_iterator stylesheet_item::end() const;2nd Variety
Parameters
none
Returns
An end stylesheet_item iterator (or const_iterator in the second variety).
Remarks
This operation returns an end stylesheet_item
iterator from the called stylesheet_item object.
Complexity
Constant
Example
#include "xhtml_doc.h"
#include <iostream>
int main(int argc, char* argv[])
{
using namespace Xport;
stylesheet_rule p_rule("p");
p_rule.insert(declaration(padding_left, "10px"));
p_rule.insert(declaration(font_size, "12pt"));
p_rule.insert(declaration(margin_top, "3em"));
stylesheet_item::const_iterator it = p_rule.begin();
for (; it != p_rule.end(); ++it) {
std::cout << it->property_name() << ": " << it->value() << "\n";
}
}