C++ 23 · Language basics
Warn when a result is ignored
Mark a function whose return value should be used.
[[nodiscard]] bool save(const std::string& path);
C++ 23 · Language basics
Mark a function whose return value should be used.
[[nodiscard]] bool save(const std::string& path);
Was this page helpful?