提交 cc705c73 编写于 作者: 邹晓航

给cntrPtr指针添加底层const属性

上级 f571cc83
...@@ -17,7 +17,8 @@ namespace TinySTL{ ...@@ -17,7 +17,8 @@ namespace TinySTL{
template<class T, class Alloc> template<class T, class Alloc>
friend class deque; friend class deque;
private: private:
typedef TinySTL::deque<T>* cntrPtr; //typedef TinySTL::deque<T>* cntrPtr;
typedef const TinySTL::deque<T>* cntrPtr;
size_t mapIndex_; size_t mapIndex_;
T *cur_; T *cur_;
cntrPtr container_; cntrPtr container_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册