Skip to main content

AbstractMemberDefType.nodiscard property

Indicates whether the member is declared as nodiscard.

Signature

nodiscard?: boolean | undefined;

Remarks

Boolean flag indicating that the member's return value should not be ignored by callers. This C++17 attribute helps prevent common programming errors where important return values are discarded.


Generated via tsdoc2docusaurus 1.3.0 by API Extractor/Documenter 7.52.8.