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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -