Skip to content

Commit

Permalink
Rename 'uni()' and out-of-place unite() to 'set_union()'
Browse files Browse the repository at this point in the history
  • Loading branch information
Adda0 committed Sep 13, 2023
1 parent 317690d commit d1f1bb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/mata/utils/ord-vector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public:
assert(vec.vectorIsSorted());
tmp.clear();

unite(*this,vec,tmp);
set_union(*this,vec,tmp);

vec_ = tmp.vec_;
/*
Expand Down Expand Up @@ -428,7 +428,7 @@ public:
return result;
}

static void unite(const OrdVector& lhs, const OrdVector& rhs, OrdVector& result) {
static void set_union(const OrdVector& lhs, const OrdVector& rhs, OrdVector& result) {
assert(lhs.vectorIsSorted());
assert(rhs.vectorIsSorted());

Expand Down Expand Up @@ -467,9 +467,9 @@ public:
assert(result.vectorIsSorted());
}

static OrdVector uni(const OrdVector& lhs, const OrdVector& rhs) {
static OrdVector set_union(const OrdVector& lhs, const OrdVector& rhs) {
OrdVector result{};
unite(lhs, rhs, result);
set_union(lhs, rhs, result);
return result;
}

Expand Down

0 comments on commit d1f1bb9

Please sign in to comment.