将std中的算法替换为TInySTL中的算法
This commit is contained in:
1 parent
504d0d0e80
commit
6adb1c8b2c
1 file changed
+3
-3
+3
-3
@@ -133,9 +133,9 @@ namespace TinySTL{
|
||||
}
|
||||
void swap(vector& v){
|
||||
if (this != &v){
|
||||
std::swap(start_, v.start_);
|
||||
std::swap(finish_, v.finish_);
|
||||
std::swap(endOfStorage_, v.endOfStorage_);
|
||||
TinySTL::swap(start_, v.start_);
|
||||
TinySTL::swap(finish_, v.finish_);
|
||||
TinySTL::swap(endOfStorage_, v.endOfStorage_);
|
||||
}
|
||||
}
|
||||
void push_back(const value_type& value);
|
||||
|
||||
Reference in new issue
Block a user