Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
need little advice on class templates July 16, 2006 05:48PM |
IP/Host: 198.54.202.--- Registered: 18 years ago Posts: 129 Rating: 1 |
Re: need little advice on class templates July 17, 2006 01:01AM |
IP/Host: ---.range86-138.btcentralplus.com Registered: 18 years ago Posts: 129 Rating: 0 |
Set<T>:: Set(){}//it looks like you have to declare your default
Re: need little advice on class templates July 17, 2006 07:45AM |
IP/Host: 198.54.202.--- Registered: 18 years ago Posts: 129 Rating: 1 |
Re: need little advice on class templates July 17, 2006 01:09PM |
IP/Host: ---.cks.co.za Registered: 18 years ago Posts: 4 Rating: 0 |
Re: need little advice on class templates July 17, 2006 01:10PM |
IP/Host: ---.cks.co.za Registered: 18 years ago Posts: 4 Rating: 0 |
Re: need little advice on class templates July 17, 2006 01:46PM |
IP/Host: ---.range86-138.btcentralplus.com Registered: 18 years ago Posts: 129 Rating: 0 |
Re: need little advice on class templates July 17, 2006 01:49PM |
IP/Host: ---.range86-138.btcentralplus.com Registered: 18 years ago Posts: 129 Rating: 0 |
Re: need little advice on class templates July 17, 2006 02:28PM |
IP/Host: ---.range86-138.btcentralplus.com Registered: 18 years ago Posts: 129 Rating: 0 |
Re: need little advice on class templates July 18, 2006 10:11AM |
IP/Host: 196.33.245.--- Registered: 18 years ago Posts: 129 Rating: 1 |
Re: need little advice on class templates July 18, 2006 11:52PM |
IP/Host: ---.range86-138.btcentralplus.com Registered: 18 years ago Posts: 129 Rating: 0 |
Re: need little advice on class templates July 21, 2006 07:42PM |
IP/Host: ---.gprs.vodacom.co.za Registered: 18 years ago Posts: 1,424 Rating: 0 |
template<class Type> void Set<Type>:: Remove (Type const &val) { std:: vector<Type>::iterator vecIter = m_dataList.begin(); // m_dataList being the vector for (vecIter = m_dataList.begin(); vecIter != m_dataList.end(); ++vecIter) { if ((*vecIter) == val) { m_dataList.erase(vecIter); break; // found the element, break out of loop and finish } } }