将std中的算法替换为TInySTL中的算法

This commit is contained in:
邹晓航
2014-10-15 16:53:00 +08:00
parent 504d0d0e80
commit 6adb1c8b2c

View File

@@ -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);