C++ Language/ProgramFlow/DeprecatingFunction

An undesirable part of an API can be marked with [[deprecated]].

Additional information about deprecating a function (includes interactive examples)