C++ structured bindings mix reference/value types?

前端 未结 0 1252
慢半拍i
慢半拍i 2020-12-16 03:13

Is it possible to iterate over a container using structured bindings but mix reference and value types? Can we convert

for (const auto& kv : map) {
  cons         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题