От: | Marty | https://www.youtube.com/channel/UChp5PpQ6T4-93HbNF-8vSYg | |
Дата: | 04.09.22 23:06 | ||
Оценка: | +1 |
for(auto i: n.items())
{
//...
}
Неудобно же?This problem may be worked around using init-statement:
for (T thing = foo(); auto& x : thing.items()) { /* ... */ } // OK