Skip to content

Instantly share code, notes, and snippets.

@BogdanAriton
Created June 15, 2021 15:17
Show Gist options
  • Save BogdanAriton/03fd80aab3ebb0475f480bc5bcd6391e to your computer and use it in GitHub Desktop.
Save BogdanAriton/03fd80aab3ebb0475f480bc5bcd6391e to your computer and use it in GitHub Desktop.
std::size_t l_size() const noexcept { return size; }; // gets back the size of the list (hence the l_ in the name)
bool isEmpty() const { return l_size() == 0; }; // checks if the size is zero which indicates that the list is empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment