BAN: Add capacity() getter for Queue
This commit is contained in:
parent
e26f360d93
commit
5b4acec4ca
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue