C++20 की प्रमुख विशेषताएँ - उदाहरणों के साथ संक्षेप में
(oleksandrkvl.github.io)-
Concepts
-
Modules
-
Coroutines
-
Three-way comparison
-
Lambda expressions
-
Constant expressions
-
Aggregates
-
Non-type template parameters
-
Structured bindings
-
Range-based for loop
-
Attributes : [[likely]] , [[unlikely]] , [[no_unique_address]] , [[nodiscard]]
-
Character encoding : char8_t
-
Sugar
-
constinit
-
Signed integers are two’s complement
-
Variadic macros के लिए VA_OPT
-
अलग exception specifications के साथ explicitly defaulted functions
-
Destroying operator delete
-
Conditionally explicit constructors
-
Feature-test macros
-
Known-to-unknown bound array conversions
-
अधिक local objects और rvalue references के लिए implicit move
-
T* से bool में conversion narrowing है
-
volatile के कुछ उपयोग deprecated किए गए हैं
-
subscripts में comma operator deprecated किया गया है
2 टिप्पणियां
C++11, 14, 17, 20... सच में ये हर 3 साल में लगातार आ रहे हैं। खासकर इस बार शामिल किया गया module system अगर उम्मीद के मुताबिक व्यापक रूप से अपनाया जाए, तो linking का तनाव बहुत कम हो जाए, यही उम्मीद है...
Concepts / Contracts / Ranges/ Module, Coroutines आदि प्रमुख फीचर्स के लिए C++20 Key Features Summary [कोरियाई प्रस्तुति सामग्री] देखें