Search⌘ K
AI Features

C++17 additions

Explore the key standard attributes introduced in C++17 such as [[fallthrough]] for intentional switch case fall-throughs, [[maybe_unused]] to suppress unused entity warnings, and [[nodiscard]] to enhance code readability and intention clarity. This lesson prepares you to write cleaner and more maintainable C++17 code by effectively using these attributes.

Attributes in C++17

With C++17 we get three more standard attributes:

[[fallthrough]]

[[maybe_unused]]

[[nodiscard]]

Extra Info: The new ...