[dcl.attr.deprecated]
9 Declarations [dcl]
9.13 Attributes [dcl.attr]
9.13.4 Deprecated attribute [dcl.attr.deprecated]
The attribute-token deprecated can be used to mark names and entities whose use is still allowed, but is discouraged for some reason.
The attribute may be applied to the declaration of a class, a type alias, a variable, a non-static data member, a function, a namespace, an enumeration, an enumerator, a concept, or a template specialization.
An entity declared without the deprecated attribute can later be redeclared with the attribute and vice-versa.
Recommended practice: Implementations should use the deprecated attribute to produce a diagnostic message in case the program refers to a name or entity other than to declare it, after a declaration that specifies the attribute.
The diagnostic message should include the text provided within the attribute-argument-clause of any deprecated attribute applied to the name or entity.
The value of a has-attribute-expression for the deprecated attribute should be 0 unless the implementation can issue such diagnostic messages.