Hello
Whats the right way to return reference to element in a map (in one line):
Thanks for help!Code:class someclass {
public:
element &get_element(std::string key) { return *(m_map.find(key)); }
private:
std::map<std::string, element> m_map;
};