BAN: fix LinkedList back/front functions
This commit is contained in:
parent
10ef3c6a54
commit
e3a71289c0
|
@ -234,28 +234,28 @@ namespace BAN
|
||||||
const T& LinkedList<T>::back() const
|
const T& LinkedList<T>::back() const
|
||||||
{
|
{
|
||||||
ASSERT(!empty());
|
ASSERT(!empty());
|
||||||
return *const_iterator(m_last);
|
return *const_iterator(m_last, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T& LinkedList<T>::back()
|
T& LinkedList<T>::back()
|
||||||
{
|
{
|
||||||
ASSERT(!empty());
|
ASSERT(!empty());
|
||||||
return *iterator(m_last);
|
return *iterator(m_last, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
const T& LinkedList<T>::front() const
|
const T& LinkedList<T>::front() const
|
||||||
{
|
{
|
||||||
ASSERT(!empty());
|
ASSERT(!empty());
|
||||||
return *const_iterator(m_data);
|
return *const_iterator(m_data, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T& LinkedList<T>::front()
|
T& LinkedList<T>::front()
|
||||||
{
|
{
|
||||||
ASSERT(!empty());
|
ASSERT(!empty());
|
||||||
return *iterator(m_data);
|
return *iterator(m_data, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
Loading…
Reference in New Issue