stout代码分析之二:None类时间:2023-03-09 18:32:51 stout库中为了避免使用NULL带来的风险,统一用None表示空。 None类的实现方式如下: struct None {}; 奇怪的是, Nothing类实现方式与None一模一样。。让人怀疑作者是不是写重了。 struct Nothing {};