c++ - Reference to multimap object -
Is it possible to return a reference to an object inside a valuable one? This is what I am trying to:
return and this-> note-list. Search (key) - & gt; second; But I'm getting the non-contact lavewell reference for the type 'note' temporarily can not force 'note *' so I'm thinking Was that possible even here, and if so, how? Notifier is multimap and inside it is a note object.
this-> Note list.find (key) - & gt; Second already gives you context for a multimap inside any object (if this-> note list one ampersand (< Code> & amp; ) prefix that expression, you get an indicator on such an object (if the operator is not overloaded)
Comments
Post a Comment