mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 10:57:01 +00:00
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "rstl/pair.hpp"
|
||||
#include "rstl/rmemory_allocator.hpp"
|
||||
#include "rstl/iterator.hpp"
|
||||
|
||||
namespace rstl {
|
||||
template < typename P >
|
||||
@@ -82,6 +83,10 @@ private:
|
||||
|
||||
public:
|
||||
struct const_iterator {
|
||||
typedef int difference_type;
|
||||
typedef forward_iterator_tag iterator_category;
|
||||
typedef P* value_type;
|
||||
|
||||
node* mNode;
|
||||
const header* mHeader;
|
||||
// bool x8_;
|
||||
@@ -136,6 +141,15 @@ public:
|
||||
return const_iterator(nullptr, &x8_header, false);
|
||||
}
|
||||
|
||||
iterator begin() {
|
||||
// TODO
|
||||
return iterator(x8_header.get_leftmost(), &x8_header, false);
|
||||
}
|
||||
iterator end() {
|
||||
// TODO
|
||||
return iterator(nullptr, &x8_header, false);
|
||||
}
|
||||
|
||||
const_iterator find(const T& key) const {
|
||||
node* n = x8_header.get_root();
|
||||
node* needle = nullptr;
|
||||
@@ -197,6 +211,8 @@ public:
|
||||
x4_count = 0;
|
||||
}
|
||||
|
||||
int size() const { return x4_count; }
|
||||
|
||||
private:
|
||||
uchar x0_;
|
||||
uchar x1_;
|
||||
|
||||
Reference in New Issue
Block a user