diff --git a/eeschema/sch_reference_list.h b/eeschema/sch_reference_list.h index 7316055d0e..ff4cea1136 100644 --- a/eeschema/sch_reference_list.h +++ b/eeschema/sch_reference_list.h @@ -598,6 +598,21 @@ public: friend class BACK_ANNOTATION; + typedef std::vector::iterator iterator; + typedef std::vector::const_iterator const_iterator; + + iterator begin() { return m_flatList.begin(); } + + iterator end() { return m_flatList.end(); } + + const_iterator begin() const { return m_flatList.begin(); } + + const_iterator end() const { return m_flatList.end(); } + + iterator erase( iterator position ) { return m_flatList.erase( position ); } + + iterator erase( iterator first, iterator last ) { return m_flatList.erase( first, last ); } + private: static bool sortByRefAndValue( const SCH_REFERENCE& item1, const SCH_REFERENCE& item2 );