BAN: Add capacity() getter for Queue

This commit is contained in:
Bananymous 2024-02-07 22:53:56 +02:00
parent e26f360d93
commit 5b4acec4ca
1 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,7 @@ namespace BAN
void clear();
bool empty() const;
size_type capacity() const;
size_type size() const;
const T& front() const;
@ -186,6 +187,12 @@ namespace BAN
return m_size == 0;
}
template<typename T>
typename Queue<T>::size_type Queue<T>::capacity() const
{
return m_capacity;
}
template<typename T>
typename Queue<T>::size_type Queue<T>::size() const
{