A bit weird question. What about the default way of accessing a map with operator[]
?
wstring aqua = m_Translations.Content()[L"water"];
In case you are not sure whether a translation exists or not, you can check it with the find
method:
const auto& dict = m_Translations.Content();
auto pAqua = dict.find(L"water");
if (pAqua != dict.end())
{
// Found it!
}
else
{
// Not there...
}