iterator end(); |
Description | |||
Each collection class contains an iterator. The iterator is provided to allow you sequentially move through the contents of the collection. They behave in the same way as stl iterators. Also see begin and iterator
end() returns the iterator that is at the end of the collection (after the last entry in the collection). Sample for (CAttribute::iterator itr = spParentElement->GetAttributes()->begin(); itr != spParentElement->GetAttributes()->end(); itr++) { CAttributePtr spAttr = (*itr); std::string strName = spAttr->GetName(); ... } |