Skip to content

Commit

Permalink
changed name of isempty to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Oct 24, 2023
1 parent e2e78ce commit 0287294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/core/List.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class List
T& get (int index);
bool set (int index, const T& data, bool with_delete=true);
int length (void) const;
bool isempty (void) const;
bool empty (void) const;
void clear (void);
void sort (void);

Expand Down Expand Up @@ -422,10 +422,10 @@ int List<T>::length(void) const
}

/*----------------------------------------------------------------------------
* isempty
* empty
*----------------------------------------------------------------------------*/
template <class T>
bool List<T>::isempty(void) const
bool List<T>::empty(void) const
{
return (len == 0);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/Ordering.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Ordering
T& get (K key, searchMode_t smode=EXACT_MATCH);
bool remove (K key, searchMode_t smode=EXACT_MATCH);
long length (void) const;
bool isempty (void) const;
bool empty (void) const;
void flush (void);
void clear (void);

Expand Down Expand Up @@ -371,10 +371,10 @@ long Ordering<T,K>::length(void) const
}

/*----------------------------------------------------------------------------
* isempty
* empty
*----------------------------------------------------------------------------*/
template <class T, typename K>
bool Ordering<T,K>::isempty(void) const
bool Ordering<T,K>::empty(void) const
{
return (len == 0);
}
Expand Down

0 comments on commit 0287294

Please sign in to comment.