mrdocs::NodiscardAttribute

The [[nodiscard]] attribute (C++17, reason added in C++20).

Description

Encourages the compiler to warn if the return value is discarded.

Base Classes

Name

Description

AttributeCommonBase<AttributeKind::Nodiscard>

CRTP base that ties a concrete attribute to a fixed AttributeKind.

Data Members

Name

Description

Reason

The reason, if any.

Static Data Members

Name

kind_id

Created with MrDocs