removed verbose inlines

This commit is contained in:
Noel Berry 2020-08-27 19:10:39 -07:00
parent 21609eaa86
commit 60b5a8e918

View File

@ -273,7 +273,7 @@ namespace Blah
} }
template<class T> template<class T>
inline bool List<T>::contains(const T& item) const bool List<T>::contains(const T& item) const
{ {
for (int i = 0; i < m_count; i++) for (int i = 0; i < m_count; i++)
if (*(m_buffer + i) == item) if (*(m_buffer + i) == item)
@ -282,7 +282,7 @@ namespace Blah
} }
template<class T> template<class T>
inline int List<T>::index_of(const T& item) const int List<T>::index_of(const T& item) const
{ {
for (int i = 0; i < m_count; i++) for (int i = 0; i < m_count; i++)
if (*(m_buffer + i) == item) if (*(m_buffer + i) == item)