Why do std range algorithms return std::ranges::dangling for rvalue arguments instead of… well, just working?

后端 未结 0 1869
执笔经年
执笔经年 2021-01-29 03:59

Here is my (simplified) attempt to implement a ranges::min_element version that would work for both lvalue and rvalue arguments:

#include 

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