How i return iterator form function :
i worte this : . ..
template<class S,class T> class Database {
public:
.
..
map<S,Node<T>*> m_map::iterator Find (S keyToFind);
.
..
....
private:
.
..
map<S,Node<T>*> m_map;
..
.
};
.
..
template<class S,class T>
map<S,Node<T>*> m_map::iterator Find (S keyToFind) {
map<S,Node<T>*>::iterator itMap;
itMap = m_map.find(KeyToUpDate);
return itMap;
}
..
.
there are many error because this : Error 1 error C2653: 'm_map' : is not a class or namespace name Error 2 error C2146: syntax error : missing ';' before identifier 'Find' Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default- Error 5 error C2653: 'm_map' : is not a class or namespace name Error 7 error C2133: 'iterator' : unknown size .. ...
i don't understand what is the problem..