//! Constructs a set with "num" elements, copying them from "init".
/*! Be very careful to ensure that the array "init" has sufficient length
for "num" elements to be copied from it. */
- set(int num = 0, const contents *init = NIL,
+ set(int num = 0, const contents *init = NULL_POINTER,
basis::un_short flags = basis::array<contents>::EXPONE)
: basis::array<contents>(num, init, flags) {}
bool set<contents>::add(const contents &to_add)
{
if (member(to_add)) return false;
- concatenate(to_add);
+ this->concatenate(to_add);
return true;
}
template <class contents>
set<contents> set<contents>::intersection(const set &intersect_with) const
{
- set<contents> created(0, NIL, this->flags());
+ set<contents> created(0, NULL_POINTER, this->flags());
const set *smaller = this;
const set *larger = &intersect_with;
if (elements() > intersect_with.elements()) {