#ifndef SEARCHABLE_LIST_H
#define SEARCHABLE_LIST_H
#include <list>
using namespace std;
template <class _Tp>
class searchable_list : public list<_Tp>
{
public:
typename searchable_list<_Tp>::const_iterator find(const _Tp& in_value) const
{
typename searchable_list<_Tp>::const_iterator a_value;
for (a_value = begin(); a_value != end(); a_value++)
{
if (*a_value == in_value)
break;
}
return a_value;
}
};
#endif // SEARCHABLE_LIST_H