From 08f260ec99be5e0a574aadc8316f6edbdaae1f2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Wed, 29 Oct 2014 09:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/BinarySearchTree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TinySTL/BinarySearchTree.h b/TinySTL/BinarySearchTree.h index 78eb095..28b37eb 100644 --- a/TinySTL/BinarySearchTree.h +++ b/TinySTL/BinarySearchTree.h @@ -28,7 +28,7 @@ namespace TinySTL{ }; typedef TinySTL::allocator nodeAllocator; public: - typedef T vaule_type; + typedef T value_type; typedef bst_iter const_iterator; typedef const T& const_reference; private: @@ -246,7 +246,7 @@ namespace TinySTL{ template friend class binary_search_tree; private: - typedef typename binary_search_tree::vaule_type value_type; + typedef typename binary_search_tree::value_type value_type; typedef typename binary_search_tree::const_reference const_reference; typedef typename const T::value_type *const_pointer; typedef binary_search_tree * cntrPtr;