using functionning luke bst

This commit is contained in:
hugogogo
2022-06-20 19:05:52 +02:00
parent 8c181b6407
commit c7114c1db2
8 changed files with 1056 additions and 11 deletions

View File

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