◐ Shell
clean mode source ↗

std::nullopt - cppreference.com

来自cppreference.com

inline constexpr nullopt_t nullopt{/* 未指明 */};
(C++17 起)

std::nulloptstd::nullopt_t 类型的常量,用于指示 optional 不含值。

参阅