c++11 使用 optional

创建日期: 2024-08-02 15:08 | 作者: 风波 | 浏览次数: 14 | 分类: C++

来源:https://stackoverflow.com/questions/57598241/using-stdoptional-in-a-c11-context

github:https://github.com/TartanLlama/optional

使用的 tl::optional,和 std::optional 一样。

可以判断一下当前的 __cplusplus 版本

#if __cplusplus < 201703L
xxx
#else
yyy
#endif
14 浏览
9 爬虫
0 评论