using functionning luke bst
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
# include <functional> // std::less, std::binary_function
|
||||
|
||||
# include "pair.hpp"
|
||||
//# include "bst.hpp"
|
||||
# include "bst.hpp"
|
||||
|
||||
namespace ft {
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
// typedef typename allocator_type::pointer pointer;
|
||||
// typedef typename allocator_type::const_pointer const_pointer;
|
||||
|
||||
// typedef Bst<Key,T,Compare,Alloc> bst_map;
|
||||
typedef Bst<Key,T,Compare,Alloc> bst_map;
|
||||
|
||||
// typedef typename bst_map::iterator iterator;
|
||||
// typedef typename bst_map::const_iterator const_iterator;
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
* element access :
|
||||
******************/
|
||||
//// operator[] --------------------------------
|
||||
// mapped_type & operator[] (const key_type& k);
|
||||
mapped_type & operator[] (const key_type& k);
|
||||
|
||||
|
||||
/*************
|
||||
@@ -166,6 +166,7 @@ private:
|
||||
|
||||
allocator_type _allocator;
|
||||
key_compare _comp;
|
||||
bst_map _bst;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user