mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #698 CSequence iterator should be random access to improve STL algorithm efficiency.
This commit is contained in:
@@ -34,7 +34,7 @@ namespace BlackMisc
|
||||
*/
|
||||
template <class T>
|
||||
class CSequence :
|
||||
public CContainerBase<CSequence, T, Iterators::ConstBidirectionalIterator<T>>,
|
||||
public CContainerBase<CSequence, T, Iterators::ConstRandomAccessIterator<T>>,
|
||||
public Mixin::Icon<CSequence<T>>
|
||||
{
|
||||
public:
|
||||
@@ -46,8 +46,8 @@ namespace BlackMisc
|
||||
typedef const T &const_reference;
|
||||
typedef T *pointer;
|
||||
typedef const T *const_pointer;
|
||||
typedef typename Iterators::ConstBidirectionalIterator<T> const_iterator;
|
||||
typedef typename Iterators::BidirectionalIterator<T> iterator;
|
||||
typedef typename Iterators::ConstRandomAccessIterator<T> const_iterator;
|
||||
typedef typename Iterators::RandomAccessIterator<T> iterator;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef intptr_t size_type;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user