mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
reuseUpdate=false
i don't even exactly remember what it does... :D
This commit is contained in:
@@ -142,7 +142,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
void add(V *p, size_t n, bool reuseUpdate) {
|
||||
void add(V *p, size_t n, bool reuseUpdate = false) {
|
||||
if (!reuseUpdate) {
|
||||
Node *cur = root;
|
||||
for (int i = curL; i >= 0; i--) {
|
||||
@@ -177,7 +177,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
bool erase(Node *begin, Node *end, bool reuseUpdate) {
|
||||
bool erase(Node *begin, Node *end, bool reuseUpdate = false) {
|
||||
if (begin == end) return false;
|
||||
|
||||
if (!reuseUpdate) {
|
||||
@@ -214,7 +214,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
Node *add(K const &k, V const &v, bool reuseUpdate) {
|
||||
Node *add(K const &k, V const &v, bool reuseUpdate = false) {
|
||||
if (!reuseUpdate) {
|
||||
Node *cur = root;
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool erase(Node *begin, Node *end, bool reuseUpdate) {
|
||||
bool erase(Node *begin, Node *end, bool reuseUpdate = false) {
|
||||
if (begin == end) return false;
|
||||
|
||||
if (!reuseUpdate) {
|
||||
@@ -168,7 +168,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
Node *add(K const &k, bool reuseUpdate) {
|
||||
Node *add(K const &k, bool reuseUpdate = false) {
|
||||
if (!reuseUpdate) {
|
||||
Node *cur = root;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user