diff -r a2d986ddd522 -r 35296642e147 sourcehook/sh_list.h --- a/sourcehook/sh_list.h Sun Oct 21 21:55:17 2007 +0000 +++ b/sourcehook/sh_list.h Thu Nov 01 01:58:44 2007 +0000 @@ -103,6 +103,20 @@ insert(begin(), obj); } + void push_sorted(const T &obj) + { + iterator iter; + for (iter = begin(); iter != end(); ++iter) + { + if (obj < *iter) + { + insert(iter, obj); + return; + } + } + push_back(obj); + } + size_t size() const { return m_Size; @@ -301,6 +315,7 @@ return *this; } }; + }; //NAMESPACE #endif //_INCLUDE_CSDM_LIST_H