Is there a proposal for ? operator / null-conditional operator for C++?

后端 未结 0 1928
广开言路
广开言路 2021-02-19 17:48

Rust has a ? operator for error propagation without exceptions. When a function returns a Result or Option type, one can write:

<         


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