stack almost good
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#ifndef MAP_HPP
|
||||
# define MAP_HPP
|
||||
|
||||
# include "colors.h"
|
||||
# include <memory> // std::allocator
|
||||
# include <cstddef> // NULL, std::size_t, std::ptrdiff_t
|
||||
# include <functional> // std::less, std::binary_function
|
||||
@@ -29,11 +28,6 @@ public:
|
||||
typedef Compare key_compare;
|
||||
typedef Alloc allocator_type;
|
||||
|
||||
// typedef typename allocator_type::reference reference;
|
||||
// typedef typename allocator_type::const_reference const_reference;
|
||||
// typedef typename allocator_type::pointer pointer;
|
||||
// typedef typename allocator_type::const_pointer const_pointer;
|
||||
|
||||
typedef Bst<Key,T,Compare,Alloc> bst_map;
|
||||
|
||||
typedef typename bst_map::iterator iterator;
|
||||
@@ -203,5 +197,11 @@ template< class Key, class T, class Compare, class Alloc > void swap
|
||||
|
||||
# include "map.tpp"
|
||||
|
||||
// banlanced binary search tree :
|
||||
// https://www.youtube.com/watch?v=vRwi_UcZGjU
|
||||
|
||||
// entinel node :
|
||||
// https://en.wikipedia.org/wiki/Sentinel_node
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user