mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-11 22:23:59 +00:00
More CScriptSpecialFunction; start rstl::map/red_black_tree
Former-commit-id: 87c0a6041c
This commit is contained in:
@@ -3,14 +3,30 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "rstl/pair.hpp"
|
||||
#include "rstl/red_black_tree.hpp"
|
||||
#include "rstl/rmemory_allocator.hpp"
|
||||
|
||||
namespace rstl {
|
||||
template < typename K, typename V, typename Cmp = less< K >, typename Alloc = rmemory_allocator >
|
||||
class map {
|
||||
u8 pad[0x14];
|
||||
public:
|
||||
typedef pair< K, V > value_type;
|
||||
|
||||
private:
|
||||
typedef red_black_tree< K, value_type, 1, select1st< value_type >, Cmp, Alloc > rep_type;
|
||||
|
||||
public:
|
||||
typedef pair< K, V > value_type;
|
||||
// typedef typename rep_type::iterator iterator;
|
||||
typedef typename rep_type::const_iterator const_iterator;
|
||||
|
||||
private:
|
||||
rep_type inner;
|
||||
};
|
||||
|
||||
typedef map< char, char > unk_map;
|
||||
CHECK_SIZEOF(unk_map, 0x14)
|
||||
} // namespace rstl
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user