How to use std::partial_sum and output to a std::map?

前端 未结 0 741
猫巷女王i
猫巷女王i 2021-01-27 12:21

I want an output map that has { {0,1},{1,2},{2,3},{3,4},{4,5} }, c++11 only. Any ideas?

std::map m, out;
for( auto i=0; i < 5; ++i ) 
    m[i]         


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