Changeset 274 in pacpusframework for trunk/src/PacpusLib


Ignore:
Timestamp:
Mar 13, 2014, 2:53:15 PM (11 years ago)
Author:
Marek Kurdej
Message:

Added: advance method to detail::basic_dom_element_iterator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentBase.cpp

    r272 r274  
    360360    }
    361361   
     362    void advance(size_t n)
     363    {
     364        m_i += n;
     365        m_at_eof = !(m_i < m_attrs.size());
     366        if (!m_at_eof) {
     367            get();
     368        }
     369    }
     370
    362371    difference_type distance_to(const basic_dom_element_iterator<charT>& other) const
    363372    {
Note: See TracChangeset for help on using the changeset viewer.