what is a deprecated attribute
Deprecated attribute [dcl.attr.deprecated]. The. deprecated can be used to mark names and entities whose use is still allowed, but is discouraged for some reason. [ Note: in particular, deprecated is appropriate for names and entities that are deemed obsolescent or unsafe.