| Both sides previous revision Previous revision Next revision | Previous revision |
| c_11_keywords [2018/01/28 10:49] – rpjday | c_11_keywords [2018/01/28 11:12] (current) – rpjday |
|---|
| * [[http://en.cppreference.com/w/cpp/keyword/constexpr|constexpr]] | * [[http://en.cppreference.com/w/cpp/keyword/constexpr|constexpr]] |
| * [[http://en.cppreference.com/w/cpp/keyword/decltype|decltype]] | * [[http://en.cppreference.com/w/cpp/keyword/decltype|decltype]] |
| | * [[http://en.cppreference.com/w/cpp/keyword/noexcept|noexcept]] |
| | * [[http://en.cppreference.com/w/cpp/keyword/nullptr|nullptr]] |
| | * [[http://en.cppreference.com/w/cpp/keyword/static_assert|static_assert]] |
| | * [[http://en.cppreference.com/w/cpp/keyword/thread_local|thread_local]] |
| |
| Previous keywords that have had their meanings changed in C++11: | Previous keywords that have had their meanings changed in C++11: |
| |
| * [[http://en.cppreference.com/w/cpp/keyword/class|class]] (adds declaration of scoped enumeration type) | * [[http://en.cppreference.com/w/cpp/keyword/auto|auto]] (now interpreted as [[http://en.cppreference.com/w/cpp/language/auto|auto specifier]]) |
| * [[http://en.cppreference.com/w/cpp/keyword/default|default]] (adds explicitly-defaulted function definition, "= default") | * [[http://en.cppreference.com/w/cpp/keyword/class|class]] (adds declaration of [[http://en.cppreference.com/w/cpp/language/enum|scoped enumeration type]]) |
| * [[http://en.cppreference.com/w/cpp/keyword/delete|delete]] (adds support for deleted functions, "= delete") | * [[http://en.cppreference.com/w/cpp/keyword/default|default]] (adds support for [[http://en.cppreference.com/w/cpp/language/member_functions#Special_member_functions|generating default special member functions]], "''= default''") |
| * [[http://en.cppreference.com/w/cpp/keyword/export|export]] (unused and reserved since C++11) | * [[http://en.cppreference.com/w/cpp/keyword/delete|delete]] (adds support for [[http://en.cppreference.com/w/cpp/language/function#Deleted_functions|deleted functions]], "''= delete''") |
| * [[http://en.cppreference.com/w/cpp/keyword/extern|extern]] (now applies to thread storage duration) | * [[http://en.cppreference.com/w/cpp/keyword/export|export]] (unused and reserved as of C++11) |
| * [[http://en.cppreference.com/w/cpp/keyword/inline|inline]] (now applies to inline namespaces]] | * [[http://en.cppreference.com/w/cpp/keyword/extern|extern]] (now applies to [[http://en.cppreference.com/w/cpp/language/storage_duration|thread storage duration]]) |
| | * [[http://en.cppreference.com/w/cpp/keyword/inline|inline]] (now applies to [[http://en.cppreference.com/w/cpp/language/namespace#Inline_namespaces|inline namespaces]]) |
| * [[http://en.cppreference.com/w/cpp/keyword/mutable|mutable]] (now applies to [[http://en.cppreference.com/w/cpp/language/lambda|lambda expressions]]) | * [[http://en.cppreference.com/w/cpp/keyword/mutable|mutable]] (now applies to [[http://en.cppreference.com/w/cpp/language/lambda|lambda expressions]]) |
| | * [[http://en.cppreference.com/w/cpp/keyword/sizeof|sizeof]] (adds [[http://en.cppreference.com/w/cpp/language/sizeof...|sizeof...]] for parameter packs]]) |
| | * [[http://en.cppreference.com/w/cpp/keyword/struct|struct]] (adds support for [[http://en.cppreference.com/w/cpp/language/enum|scoped enumeration declaration]]) |
| | * [[http://en.cppreference.com/w/cpp/keyword/using|using]] (adds support for [[http://en.cppreference.com/w/cpp/language/type_alias|type alias and alias template declaration]]) |
| |
| Not new "keywords" but have special meaning in a particular context: | Not new "keywords" but have special meaning in a particular context: |