mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #108, added find methods in CSequence and CCollection;
CSequence uses std::find, and CCollection uses the more efficient find method of the implementation type, which requires that the implementation type be an associative container like QSet or std::set. Modified CContainerBase::contains to use these new find methods.
This commit is contained in:
@@ -152,7 +152,7 @@ namespace BlackMisc
|
||||
virtual PimplBase *clone() const { return new Pimpl(*this); }
|
||||
virtual const_reference operator *() const { return *m_impl; }
|
||||
virtual void operator ++() { ++m_impl; }
|
||||
virtual void operator +=(difference_type n) { m_impl += n; }
|
||||
virtual void operator +=(difference_type n) { std::advance(m_impl, n); }
|
||||
virtual bool operator ==(const PimplBase &other) const { return m_impl == static_cast<const Pimpl&>(other).m_impl; }
|
||||
virtual void *impl() { return &m_impl; }
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user