सी ++ 20: Difference between revisions

From Vigyanwiki
No edit summary
No edit summary
Line 1: Line 1:
{{C++ language revisions}}
{{C++ language revisions}}
'''[[C++]]20''' सी++ प्रोग्रामिंग भाषा के लिए मानकीकरण के लिए अंतर्राष्ट्रीय संगठन या अंतर्राष्ट्रीय [[इंटरनेशनल इलेक्ट्रोटेक्नीकल कमीशन]] मानक का एक संस्करण है। सी++20 ने सी++ मानक के पूर्व संस्करण को बदल दिया। जिसे [[C++17|सी++17]] कहा जाता है।<ref>{{cite web |title=The Standard |url=https://isocpp.org/std/the-standard |website=isocpp.org |accessdate=7 September 2020 |archive-date=19 September 2020 |archive-url=https://web.archive.org/web/20200919050617/https://isocpp.org/std/the-standard |url-status=live }}</ref> मानक को विधि रूप से अंतिम रूप दिया गया था।<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1000r3.pdf|title=P1000R3: C++ IS schedule|last=Sutter|first=Herb|date=2019-10-01|website=|access-date=2020-02-13|archive-date=2019-11-14|archive-url=https://web.archive.org/web/20191114141143/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1000r3.pdf|url-status=live}}</ref> फरवरी 2020 में [[प्राहा]] में बैठक में आईएसओ/आईईसी जेटीसी 1/एससी 22 द्वारा<ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/n4817.pdf|title=N4817: 2020 Prague Meeting Invitation and Information|last=Dusíková|first=Hana|date=2019-11-06|website=|url-status=live|archive-url=https://web.archive.org/web/20191229102449/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4817.pdf |archive-date=2019-12-29 |access-date=2020-02-13}}</ref> 4 सितंबर 2020 को स्वीकृत किया गया<ref>{{cite web |title=Current Status |url=https://isocpp.org/std/status |website=isocpp.org |accessdate=7 September 2020 |archive-date=8 September 2020 |archive-url=https://web.archive.org/web/20200908083135/https://isocpp.org/std/status |url-status=live }}</ref><ref>{{cite web |title=C++20 Approved -- Herb Sutter |url=https://isocpp.org/blog/2020/09/cpp20-approved-herb-sutter |website=isocpp.org |accessdate=8 September 2020 |archive-date=11 September 2020 |archive-url=https://web.archive.org/web/20200911150359/https://isocpp.org/blog/2020/09/cpp20-approved-herb-sutter |url-status=live }}</ref> और दिसंबर 2020 में प्रकाशित हुआ।<ref>{{cite web|url=https://www.iso.org/standard/79358.html|title=ISO/IEC 14882:2020|access-date=2020-12-16|archive-date=2020-12-16|archive-url=https://web.archive.org/web/20201216154357/https://www.iso.org/standard/79358.html|url-status=live}}</ref>
'''[[C++|सी++]]20''' सी++ प्रोग्रामिंग भाषा के लिए मानकीकरण के लिए अंतर्राष्ट्रीय संगठन या अंतर्राष्ट्रीय [[इंटरनेशनल इलेक्ट्रोटेक्नीकल कमीशन]] मानक का एक संस्करण है। सी++20 ने सी++ मानक के पूर्व संस्करण को बदल दिया। जिसे [[C++17|सी++17]] कहा जाता है।<ref>{{cite web |title=The Standard |url=https://isocpp.org/std/the-standard |website=isocpp.org |accessdate=7 September 2020 |archive-date=19 September 2020 |archive-url=https://web.archive.org/web/20200919050617/https://isocpp.org/std/the-standard |url-status=live }}</ref> मानक को विधि रूप से अंतिम रूप दिया गया था।<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1000r3.pdf|title=P1000R3: C++ IS schedule|last=Sutter|first=Herb|date=2019-10-01|website=|access-date=2020-02-13|archive-date=2019-11-14|archive-url=https://web.archive.org/web/20191114141143/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1000r3.pdf|url-status=live}}</ref> फरवरी 2020 में [[प्राहा]] में बैठक में आईएसओ/आईईसी जेटीसी 1/एससी 22 द्वारा<ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/n4817.pdf|title=N4817: 2020 Prague Meeting Invitation and Information|last=Dusíková|first=Hana|date=2019-11-06|website=|url-status=live|archive-url=https://web.archive.org/web/20191229102449/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4817.pdf |archive-date=2019-12-29 |access-date=2020-02-13}}</ref> 4 सितंबर 2020 को स्वीकृत किया गया<ref>{{cite web |title=Current Status |url=https://isocpp.org/std/status |website=isocpp.org |accessdate=7 September 2020 |archive-date=8 September 2020 |archive-url=https://web.archive.org/web/20200908083135/https://isocpp.org/std/status |url-status=live }}</ref><ref>{{cite web |title=C++20 Approved -- Herb Sutter |url=https://isocpp.org/blog/2020/09/cpp20-approved-herb-sutter |website=isocpp.org |accessdate=8 September 2020 |archive-date=11 September 2020 |archive-url=https://web.archive.org/web/20200911150359/https://isocpp.org/blog/2020/09/cpp20-approved-herb-sutter |url-status=live }}</ref> और दिसंबर 2020 में प्रकाशित हुआ।<ref>{{cite web|url=https://www.iso.org/standard/79358.html|title=ISO/IEC 14882:2020|access-date=2020-12-16|archive-date=2020-12-16|archive-url=https://web.archive.org/web/20201216154357/https://www.iso.org/standard/79358.html|url-status=live}}</ref>




Line 94: Line 94:


पूर्ण समर्थन<ref>{{Cite web |title=C++ compiler support - cppreference.com |url=https://en.cppreference.com/w/cpp/compiler_support |access-date=2022-08-12 |website=en.cppreference.com |archive-date=2022-08-08 |archive-url=https://web.archive.org/web/20220808151657/https://en.cppreference.com/w/cpp/compiler_support |url-status=live }}</ref>
पूर्ण समर्थन<ref>{{Cite web |title=C++ compiler support - cppreference.com |url=https://en.cppreference.com/w/cpp/compiler_support |access-date=2022-08-12 |website=en.cppreference.com |archive-date=2022-08-08 |archive-url=https://web.archive.org/web/20220808151657/https://en.cppreference.com/w/cpp/compiler_support |url-status=live }}</ref>
* माइक्रोसॉफ्ट विजुअल स्टूडियो 2019 इसके माध्यम से सभी सी++20 सुविधाओं का समर्थन करता है। <code>/std:c++latest</code> विकल्प संस्करण 16.10.0 के अनुसार<ref>{{Cite web|last=jawiddis|title=Visual Studio 2019 version 16.10 Release Notes|url=https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.10#16.10.0|access-date=2021-07-13|website=docs.microsoft.com|language=en-us|archive-date=2021-08-11|archive-url=https://web.archive.org/web/20210811215520/https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.10#16.10.0|url-status=live}}</ref> एक विकल्प <code>/std:c++20</code> C++20 मोड को सक्षम करने के लिए संस्करण 16.11.0 में जोड़ा गया है।<ref>{{Cite web|title=MSVC C++20 and the /std:c++20 Switch|url=https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/|access-date=2021-09-07|website=docs.microsoft.com|language=en-us|archive-date=2021-09-06|archive-url=https://web.archive.org/web/20210906151426/https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/|url-status=live}}</ref><ref>{{Citation |title=Visual Studio documentation for Microsoft C++ |date=2022-04-19 |url=https://github.com/MicrosoftDocs/cpp-docs/blob/578dd21279a897661686617375dff80f1eb2f40c/docs/overview/cpp-conformance-improvements.md |publisher=Microsoft Docs |access-date=2022-04-19 |archive-date=2022-04-19 |archive-url=https://web.archive.org/web/20220419161220/https://github.com/MicrosoftDocs/cpp-docs/blob/578dd21279a897661686617375dff80f1eb2f40c/docs/overview/cpp-conformance-improvements.md |url-status=live }}</ref> प्रोजेक्ट गुण → कॉन्फ़िगरेशन गुण → सी/सी ++ → भाषा → सी ++ भाषा मानक।
* माइक्रोसॉफ्ट विजुअल स्टूडियो 2019 इसके माध्यम से सभी सी++20 सुविधाओं का समर्थन करता है। <code>/std:सी++latest</code> विकल्प संस्करण 16.10.0 के अनुसार<ref>{{Cite web|last=jawiddis|title=Visual Studio 2019 version 16.10 Release Notes|url=https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.10#16.10.0|access-date=2021-07-13|website=docs.microsoft.com|language=en-us|archive-date=2021-08-11|archive-url=https://web.archive.org/web/20210811215520/https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.10#16.10.0|url-status=live}}</ref> एक विकल्प <code>/std:सी++20</code> सी++20 मोड को सक्षम करने के लिए संस्करण 16.11.0 में जोड़ा गया है।<ref>{{Cite web|title=MSVC C++20 and the /std:c++20 Switch|url=https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/|access-date=2021-09-07|website=docs.microsoft.com|language=en-us|archive-date=2021-09-06|archive-url=https://web.archive.org/web/20210906151426/https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/|url-status=live}}</ref><ref>{{Citation |title=Visual Studio documentation for Microsoft C++ |date=2022-04-19 |url=https://github.com/MicrosoftDocs/cpp-docs/blob/578dd21279a897661686617375dff80f1eb2f40c/docs/overview/cpp-conformance-improvements.md |publisher=Microsoft Docs |access-date=2022-04-19 |archive-date=2022-04-19 |archive-url=https://web.archive.org/web/20220419161220/https://github.com/MicrosoftDocs/cpp-docs/blob/578dd21279a897661686617375dff80f1eb2f40c/docs/overview/cpp-conformance-improvements.md |url-status=live }}</ref> प्रोजेक्ट गुण → कॉन्फ़िगरेशन गुण → सी/सी ++ → भाषा → सी ++ भाषा मानक।
माइक्रोसॉफ्ट का कंपाइलर सिर्फ विंडोज, लिनक्स (और जैसे एंड्रॉइड और आईओएस) का समर्थन नहीं करता है, जबकि इसके लिए लिनक्स डेवलपमेंट एक्सटेंशन के लिए विज़ुअल सी ++ की आवश्यकता होती है।<ref>{{Cite web |title=Visual Studio 2019 Compatibility |url=https://docs.microsoft.com/en-us/visualstudio/releases/2019/compatibility |access-date=2022-08-12 |website=docs.microsoft.com |language=en-us |archive-date=2020-06-03 |archive-url=https://web.archive.org/web/20200603060110/https://docs.microsoft.com/en-us/visualstudio/releases/2019/compatibility |url-status=live }}</ref>
माइक्रोसॉफ्ट का कंपाइलर केवल विंडोज, लिनक्स (और जैसे एंड्रॉइड और आईओएस) का समर्थन नहीं करता है। किन्तु इसके लिए लिनक्स डेवलपमेंट एक्सटेंशन के लिए विज़ुअल सी ++ की आवश्यकता होती है।<ref>{{Cite web |title=Visual Studio 2019 Compatibility |url=https://docs.microsoft.com/en-us/visualstudio/releases/2019/compatibility |access-date=2022-08-12 |website=docs.microsoft.com |language=en-us |archive-date=2020-06-03 |archive-url=https://web.archive.org/web/20200603060110/https://docs.microsoft.com/en-us/visualstudio/releases/2019/compatibility |url-status=live }}</ref>
आंशिक
* [[बजना]] में कम सी++20 समर्थन है। जिसे विकल्प के साथ सक्षम किया जा सकता है। <code>-std=सी++20</code> (संस्करण 10 और बाद में) या <code>-std=सी++2a</code> (संस्करण 9 और पूर्व)।<ref>{{Cite web |title=Clang - C++ Programming Language Status |url=https://clang.llvm.org/cxx_status.html |access-date=2022-04-19 |website=clang.llvm.org |archive-date=2013-07-04 |archive-url=https://web.archive.org/web/20130704124639/http://clang.llvm.org/cxx_status.html |url-status=live }}</ref>
* [[बजना]] में आंशिक C++20 समर्थन है जिसे विकल्प के साथ सक्षम किया जा सकता है <code>-std=c++20</code> (संस्करण 10 और बाद में) या <code>-std=c++2a</code> (संस्करण 9 और पूर्व)।<ref>{{Cite web |title=Clang - C++ Programming Language Status |url=https://clang.llvm.org/cxx_status.html |access-date=2022-04-19 |website=clang.llvm.org |archive-date=2013-07-04 |archive-url=https://web.archive.org/web/20130704124639/http://clang.llvm.org/cxx_status.html |url-status=live }}</ref>
* [[एडिसन डिजाइन समूह|एडिसन प्रारूप समूह]] ने संस्करण 5.0 में सी++20 सुविधाओं को प्रयुक्त करना प्रारम्भ किया और संस्करण 6.1 के रूप में अधिकांशतः सी++20 कोर भाषा सुविधाओं का समर्थन करता है।<ref>{{Cite web |title=C++ compiler support - cppreference.com |url=https://en.cppreference.com/w/cpp/compiler_support |website=en.cppreference.com |access-date=2020-10-10 |archive-date=2020-10-03 |archive-url=https://web.archive.org/web/20201003141955/https://en.cppreference.com/w/cpp/compiler_support |url-status=live }}</ref>
* [[एडिसन डिजाइन समूह]] ने संस्करण 5.0 में C++20 सुविधाओं को लागू करना शुरू किया और संस्करण 6.1 के रूप में अधिकांश C++20 कोर भाषा सुविधाओं का समर्थन करता है।<ref>{{Cite web |title=C++ compiler support - cppreference.com |url=https://en.cppreference.com/w/cpp/compiler_support |website=en.cppreference.com |access-date=2020-10-10 |archive-date=2020-10-03 |archive-url=https://web.archive.org/web/20201003141955/https://en.cppreference.com/w/cpp/compiler_support |url-status=live }}</ref>
* जीएनयू संकलक संग्रह ने 2017 में आंशिक, प्रयोगात्मक सी++20 समर्थन जोड़ा और<ref>{{Cite web |title=Andrew Sutton - [PATCH] Add -std=c++2a |url=https://gcc.gnu.org/legacy-ml/gcc-patches/2017-07/msg01234.html |access-date=2022-04-19 |website=gcc.gnu.org |archive-date=2021-03-01 |archive-url=https://web.archive.org/web/20210301065559/https://gcc.gnu.org/legacy-ml/gcc-patches/2017-07/msg01234.html |url-status=live }}</ref> विकल्प के माध्यम से संस्करण 8 में <code>-std=सी++2a</code> क्लैंग के अनुसार जीसीसी ने इस विकल्प को <code>-std=सी++20</code> संस्करण 10 में भी जोड़ा। इसमें प्रायोगिक सी++20 समर्थन के अतिरिक्त जीएनयू एक्सटेंशन को सक्षम करने का विकल्प भी है। <code>-std=gnu++20</code>.<ref>{{Cite web |title=C++ Standards Support in GCC - GNU Project |url=https://gcc.gnu.org/projects/cxx-status.html |access-date=2022-04-19 |website=gcc.gnu.org |archive-date=2022-04-20 |archive-url=https://web.archive.org/web/20220420114133/https://gcc.gnu.org/projects/cxx-status.html |url-status=live }}</ref>
* GNU संकलक संग्रह ने 2017 में आंशिक, प्रयोगात्मक C++20 समर्थन जोड़ा<ref>{{Cite web |title=Andrew Sutton - [PATCH] Add -std=c++2a |url=https://gcc.gnu.org/legacy-ml/gcc-patches/2017-07/msg01234.html |access-date=2022-04-19 |website=gcc.gnu.org |archive-date=2021-03-01 |archive-url=https://web.archive.org/web/20210301065559/https://gcc.gnu.org/legacy-ml/gcc-patches/2017-07/msg01234.html |url-status=live }}</ref> विकल्प के माध्यम से संस्करण 8 में <code>-std=c++2a</code>. क्लैंग की तरह, जीसीसी ने इस विकल्प को <code>-std=c++20</code> संस्करण 10 में। इसमें प्रायोगिक C++20 समर्थन के अतिरिक्त GNU एक्सटेंशन को सक्षम करने का विकल्प भी है, <code>-std=gnu++20</code>.<ref>{{Cite web |title=C++ Standards Support in GCC - GNU Project |url=https://gcc.gnu.org/projects/cxx-status.html |access-date=2022-04-19 |website=gcc.gnu.org |archive-date=2022-04-20 |archive-url=https://web.archive.org/web/20220420114133/https://gcc.gnu.org/projects/cxx-status.html |url-status=live }}</ref>




== इतिहास ==
== इतिहास ==


जुलाई 2017 (टोरंटो) में C++20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2017/07/15/trip-report-summer-iso-c-standards-meeting-toronto/|title=Trip report: Summer ISO C++ standards meeting (Toronto)|author=[[Herb Sutter]]|access-date=2017-07-16|archive-date=2017-08-06|archive-url=https://web.archive.org/web/20170806182136/https://herbsutter.com/2017/07/15/trip-report-summer-iso-c-standards-meeting-toronto/|url-status=live}}</ref>
जुलाई 2017 (टोरंटो) में सी++20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2017/07/15/trip-report-summer-iso-c-standards-meeting-toronto/|title=Trip report: Summer ISO C++ standards meeting (Toronto)|author=[[Herb Sutter]]|access-date=2017-07-16|archive-date=2017-08-06|archive-url=https://web.archive.org/web/20170806182136/https://herbsutter.com/2017/07/15/trip-report-summer-iso-c-standards-meeting-toronto/|url-status=live}}</ref>
* अवधारणाएँ (C++) (जिसने इसे मानक में बनाया वह एक कट-डाउन संस्करण है; इसे कॉन्सेप्ट लाइट के रूप में भी वर्णित किया गया है<ref>{{Cite web |title=Concepts Lite: Constraining Templates with Predicates |url=https://isocpp.org/blog/2013/02/concepts-lite-constraining-templates-with-predicates-andrew-sutton-bjarne-s |website=isocpp.org |date=2013-02-24 |publisher=isocpp.org |author1=Andrew Sutton |author2=Bjarne Stroustrup |access-date=2021-01-13 |archive-date=2021-01-16 |archive-url=https://web.archive.org/web/20210116175846/https://isocpp.org/blog/2013/02/concepts-lite-constraining-templates-with-predicates-andrew-sutton-bjarne-s |url-status=live }}</ref>)
* अवधारणाएँ (सी++) (जिसने इसे मानक में बनाया वह एक कट-डाउन संस्करण है; इसे कॉन्सेप्ट लाइट के रूप में भी वर्णित किया गया है<ref>{{Cite web |title=Concepts Lite: Constraining Templates with Predicates |url=https://isocpp.org/blog/2013/02/concepts-lite-constraining-templates-with-predicates-andrew-sutton-bjarne-s |website=isocpp.org |date=2013-02-24 |publisher=isocpp.org |author1=Andrew Sutton |author2=Bjarne Stroustrup |access-date=2021-01-13 |archive-date=2021-01-16 |archive-url=https://web.archive.org/web/20210116175846/https://isocpp.org/blog/2013/02/concepts-lite-constraining-templates-with-predicates-andrew-sutton-bjarne-s |url-status=live }}</ref>)
* नामित प्रारंभकर्ता
* नामित प्रारंभकर्ता
* <code>[=, this]</code> लैम्ब्डा कैप्चर के रूप में
* <code>[=, this]</code> लैम्ब्डा कैप्चर के रूप में
Line 111: Line 110:
* <code>std::make_shared</code> और <code>std::allocate_shared</code> सरणियों के लिए
* <code>std::make_shared</code> और <code>std::allocate_shared</code> सरणियों के लिए


नवंबर 2017 (अल्बुकर्क) में गिरावट की बैठक में सी ++ 20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2017/11/11/trip-report-fall-iso-c-standards-meeting-albuquerque/|title=Trip report: Fall ISO C++ standards meeting (Albuquerque)|author=[[Herb Sutter]]|access-date=2017-12-04|archive-date=2019-02-13|archive-url=https://web.archive.org/web/20190213081959/https://herbsutter.com/2017/11/11/trip-report-fall-iso-c-standards-meeting-albuquerque/|url-status=live}}</ref><ref>{{cite web |last1=Smith |first1=Richard |last2=Perchik |first2=Dawn |last3=Köppe |first3=Thomas |title=N4714 Editors' Report -- Programming Languages -- C++ |url=https://github.com/cplusplus/draft/blob/master/papers/n4714.md |website=C++ standards drafts |publisher=[[GitHub]] |accessdate=27 December 2018 |archive-date=21 September 2022 |archive-url=https://web.archive.org/web/20220921201419/https://github.com/cplusplus/draft/blob/main/papers/n4714.md |url-status=live }}</ref>
नवंबर 2017 (अल्बुकर्क) में गिरावट की बैठक में सी ++ 20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2017/11/11/trip-report-fall-iso-c-standards-meeting-albuquerque/|title=Trip report: Fall ISO C++ standards meeting (Albuquerque)|author=[[Herb Sutter]]|access-date=2017-12-04|archive-date=2019-02-13|archive-url=https://web.archive.org/web/20190213081959/https://herbsutter.com/2017/11/11/trip-report-fall-iso-c-standards-meeting-albuquerque/|url-status=live}}</ref><ref>{{cite web |last1=Smith |first1=Richard |last2=Perchik |first2=Dawn |last3=Köppe |first3=Thomas |title=N4714 Editors' Report -- Programming Languages -- C++ |url=https://github.com/cplusplus/draft/blob/master/papers/n4714.md |website=C++ standards drafts |publisher=[[GitHub]] |accessdate=27 December 2018 |archive-date=21 September 2022 |archive-url=https://web.archive.org/web/20220921201419/https://github.com/cplusplus/draft/blob/main/papers/n4714.md |url-status=live }}</ref>
* स्पेसशिप ऑपरेटर का उपयोग करके तीन-तरफ़ा तुलना, <code>operator &lt;=&gt;</code>
* स्पेसशिप ऑपरेटर का उपयोग करके तीन-तरफ़ा तुलना, <code>operator &lt;=&gt;</code>
* एक श्रेणी-आधारित के अन्दर एक अतिरिक्त चर का आरंभीकरण <code>for</code> कथन
* एक श्रेणी-आधारित के अन्दर एक अतिरिक्त चर का आरंभीकरण <code>for</code> कथन
Line 121: Line 120:
* <code>std::to_address</code> एक सूचक को कच्चे सूचक में बदलने के लिए
* <code>std::to_address</code> एक सूचक को कच्चे सूचक में बदलने के लिए


मार्च 2018 (जैक्सनविले) में सी ++ 20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://botondballo.wordpress.com/2018/03/28/trip-report-c-standards-meeting-in-jacksonville-march-2018/|title=Trip Report: C++ Standards Meeting in Jacksonville, March 2018|author=Botond Ballo|access-date=2019-05-18|archive-date=2019-05-18|archive-url=https://web.archive.org/web/20190518102815/https://botondballo.wordpress.com/2018/03/28/trip-report-c-standards-meeting-in-jacksonville-march-2018/|url-status=live}}</ref>
मार्च 2018 (जैक्सनविले) में सी ++ 20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://botondballo.wordpress.com/2018/03/28/trip-report-c-standards-meeting-in-jacksonville-march-2018/|title=Trip Report: C++ Standards Meeting in Jacksonville, March 2018|author=Botond Ballo|access-date=2019-05-18|archive-date=2019-05-18|archive-url=https://web.archive.org/web/20190518102815/https://botondballo.wordpress.com/2018/03/28/trip-report-c-standards-meeting-in-jacksonville-march-2018/|url-status=live}}</ref>
* की आवश्यकता को दूर करना <code>typename</code> कुछ निश्चित परिस्थितियों में
* की आवश्यकता को दूर करना <code>typename</code> कुछ निश्चित परिस्थितियों में
* नए मानक गुण <code><nowiki>[[no_unique_address]]</nowiki></code>, <code><nowiki>[[likely]]</nowiki></code> और <code><nowiki>[[unlikely]]</nowiki></code>
* नए मानक गुण <code><nowiki>[[no_unique_address]]</nowiki></code>, <code><nowiki>[[likely]]</nowiki></code> और <code><nowiki>[[unlikely]]</nowiki></code>
Line 128: Line 127:
* <code><version></code> हैडर
* <code><version></code> हैडर


जून 2018 (रैपर्सविल) में ग्रीष्मकालीन बैठक में सी ++ 20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2018/07/02/trip-report-summer-iso-c-standards-meeting-rapperswil/|title=Trip report: Summer ISO C++ standards meeting (Rapperswil)|author=[[Herb Sutter]]|access-date=2018-11-10|archive-date=2020-05-23|archive-url=https://web.archive.org/web/20200523083708/https://herbsutter.com/2018/07/02/trip-report-summer-iso-c-standards-meeting-rapperswil/|url-status=live}}</ref>
जून 2018 (रैपर्सविल) में ग्रीष्मकालीन बैठक में सी ++ 20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{cite web|url=https://herbsutter.com/2018/07/02/trip-report-summer-iso-c-standards-meeting-rapperswil/|title=Trip report: Summer ISO C++ standards meeting (Rapperswil)|author=[[Herb Sutter]]|access-date=2018-11-10|archive-date=2020-05-23|archive-url=https://web.archive.org/web/20200523083708/https://herbsutter.com/2018/07/02/trip-report-summer-iso-c-standards-meeting-rapperswil/|url-status=live}}</ref>
* <s>अनुबंध</s> (C++20#बाद के मानक के लिए स्थगित)<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0542r5.html|title=Support for contract based programming in C++|website=www.open-std.org|access-date=2018-11-10|archive-date=2020-01-15|archive-url=https://web.archive.org/web/20200115232059/http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0542r5.html|url-status=live}}</ref>
* <s>अनुबंध</s> (सी++20#बाद के मानक के लिए स्थगित)<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0542r5.html|title=Support for contract based programming in C++|website=www.open-std.org|access-date=2018-11-10|archive-date=2020-01-15|archive-url=https://web.archive.org/web/20200115232059/http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0542r5.html|url-status=live}}</ref>
* फीचर टेस्ट मैक्रोज़
* फीचर टेस्ट मैक्रोज़
* वस्तु अभ्यावेदन की बिट-कास्टिंग, से कम वाचालता के साथ <code>memcpy()</code> और कंपाइलर इंटर्नल्स का फायदा उठाने की अधिक क्षमता
* वस्तु अभ्यावेदन की बिट-कास्टिंग, से कम वाचालता के साथ <code>memcpy()</code> और कंपाइलर इंटर्नल्स का फायदा उठाने की अधिक क्षमता
Line 135: Line 134:
* constexpr आभासी कार्य करता है
* constexpr आभासी कार्य करता है


नवंबर 2018 (सैन डिएगो) में गिरावट की बैठक में सी ++ 20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>[http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/n4715.pdf fall meeting in November 2018]</ref>
नवंबर 2018 (सैन डिएगो) में गिरावट की बैठक में सी ++ 20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>[http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/n4715.pdf fall meeting in November 2018]</ref>
* पर्वतमाला (एक श्रेणी प्रस्ताव)
* पर्वतमाला (एक श्रेणी प्रस्ताव)
* अवधारणा संक्षिप्त वाक्य रचना
* अवधारणा संक्षिप्त वाक्य रचना
Line 146: Line 145:
* डिफॉल्ट इनिशियलाइज़ेशन के साथ स्मार्ट पॉइंटर क्रिएशन
* डिफॉल्ट इनिशियलाइज़ेशन के साथ स्मार्ट पॉइंटर क्रिएशन


फरवरी 2019 (कोना) में शीतकालीन बैठक में C++20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>[http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/n4765.pdf winter meeting in February 2019]</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/au0c4x/201902_kona_iso_c_committee_trip_report_c20/|title=r/cpp - 2019-02 Kona ISO C++ Committee Trip Report (C++20 design is complete; Modules in C++20; Coroutines in C++20; Reflection TS v1 published; work begins on a C++ Ecosystem Technical Report)|website=reddit|language=en|access-date=2019-02-24|archive-date=2019-02-23|archive-url=https://web.archive.org/web/20190223234513/https://www.reddit.com/r/cpp/comments/au0c4x/201902_kona_iso_c_committee_trip_report_c20/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/02/23/trip-report-winter-iso-c-standards-meeting-kona/|title=Trip report: Winter ISO C++ standards meeting (Kona)|date=2019-02-23|website=Sutter's Mill|language=en|access-date=2019-02-24|archive-date=2019-02-24|archive-url=https://web.archive.org/web/20190224030105/https://herbsutter.com/2019/02/23/trip-report-winter-iso-c-standards-meeting-kona/|url-status=live}}</ref>
फरवरी 2019 (कोना) में शीतकालीन बैठक में सी++20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>[http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/n4765.pdf winter meeting in February 2019]</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/au0c4x/201902_kona_iso_c_committee_trip_report_c20/|title=r/cpp - 2019-02 Kona ISO C++ Committee Trip Report (C++20 design is complete; Modules in C++20; Coroutines in C++20; Reflection TS v1 published; work begins on a C++ Ecosystem Technical Report)|website=reddit|language=en|access-date=2019-02-24|archive-date=2019-02-23|archive-url=https://web.archive.org/web/20190223234513/https://www.reddit.com/r/cpp/comments/au0c4x/201902_kona_iso_c_committee_trip_report_c20/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/02/23/trip-report-winter-iso-c-standards-meeting-kona/|title=Trip report: Winter ISO C++ standards meeting (Kona)|date=2019-02-23|website=Sutter's Mill|language=en|access-date=2019-02-24|archive-date=2019-02-24|archive-url=https://web.archive.org/web/20190224030105/https://herbsutter.com/2019/02/23/trip-report-winter-iso-c-standards-meeting-kona/|url-status=live}}</ref>
* कोरआउटिन
* कोरआउटिन
* मॉड्यूलर प्रोग्रामिंग
* मॉड्यूलर प्रोग्रामिंग
* संरचित बाइंडिंग में विभिन्न सुधार (लैम्ब्डा कैप्चर के साथ सहभागिता, <code>static</code> और <code>thread_local</code> भंडारण अवधि)
* संरचित बाइंडिंग में विभिन्न सुधार (लैम्ब्डा कैप्चर के साथ सहभागिता, <code>static</code> और <code>thread_local</code> भंडारण अवधि)


जुलाई 2019 (कोलोन) में ग्रीष्मकालीन बैठक में C++20 वर्किंग ड्राफ्ट में लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{Cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4783.pdf|title=summer meeting in July 2019}}</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/|title=r/cpp - 2019-07 Cologne ISO C++ Committee Trip Report — 🚀 The C++20 Eagle has Landed 🚀 (C++20 Committee Draft shipped; Contracts Moved From C++20 to a Study Group; 'std::format' in C++20; C++20 Synchronization Library)|website=reddit|language=en|access-date=2019-09-15|archive-date=2020-04-20|archive-url=https://web.archive.org/web/20200420142050/https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/|url-status=live}}</ref><ref>{{cite web|url=https://botondballo.wordpress.com/2019/07/26/trip-report-c-standards-meeting-in-cologne-july-2019/|title=Trip Report: C++ Standards Meeting in Cologne, July 2019|author=Botond Ballo|access-date=2019-08-05|archive-date=2020-02-26|archive-url=https://web.archive.org/web/20200226062236/https://botondballo.wordpress.com/2019/07/26/trip-report-c-standards-meeting-in-cologne-july-2019/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/07/20/trip-report-summer-iso-c-standards-meeting-cologne/|title=Trip report: Summer ISO C++ standards meeting (Cologne)|last=Sutter|first=Herb|access-date=2019-07-21|archive-date=2020-04-17|archive-url=https://web.archive.org/web/20200417181512/https://herbsutter.com/2019/07/20/trip-report-summer-iso-c-standards-meeting-cologne/|url-status=live}}</ref>
जुलाई 2019 (कोलोन) में ग्रीष्मकालीन बैठक में सी++20 वर्किंग ड्राफ्ट में प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>{{Cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/n4783.pdf|title=summer meeting in July 2019}}</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/|title=r/cpp - 2019-07 Cologne ISO C++ Committee Trip Report — 🚀 The C++20 Eagle has Landed 🚀 (C++20 Committee Draft shipped; Contracts Moved From C++20 to a Study Group; 'std::format' in C++20; C++20 Synchronization Library)|website=reddit|language=en|access-date=2019-09-15|archive-date=2020-04-20|archive-url=https://web.archive.org/web/20200420142050/https://www.reddit.com/r/cpp/comments/cfk9de/201907_cologne_iso_c_committee_trip_report_the/|url-status=live}}</ref><ref>{{cite web|url=https://botondballo.wordpress.com/2019/07/26/trip-report-c-standards-meeting-in-cologne-july-2019/|title=Trip Report: C++ Standards Meeting in Cologne, July 2019|author=Botond Ballo|access-date=2019-08-05|archive-date=2020-02-26|archive-url=https://web.archive.org/web/20200226062236/https://botondballo.wordpress.com/2019/07/26/trip-report-c-standards-meeting-in-cologne-july-2019/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/07/20/trip-report-summer-iso-c-standards-meeting-cologne/|title=Trip report: Summer ISO C++ standards meeting (Cologne)|last=Sutter|first=Herb|access-date=2019-07-21|archive-date=2020-04-17|archive-url=https://web.archive.org/web/20200417181512/https://herbsutter.com/2019/07/20/trip-report-summer-iso-c-standards-meeting-cologne/|url-status=live}}</ref>
* अनुबंध हटा दिए गए थे (सी ++ 20 की सूची देखें # बाद के मानक के लिए स्थगित)<ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1823r0.pdf|title=P1823R0: Remove Contracts from C++20|last=Josuttis|first=Nicolai|access-date=2019-08-20|archive-date=2020-08-13|archive-url=https://web.archive.org/web/20200813202348/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1823r0.pdf|url-status=live}}</ref>
* अनुबंध हटा दिए गए थे (सी ++ 20 की सूची देखें # बाद के मानक के लिए स्थगित)<ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1823r0.pdf|title=P1823R0: Remove Contracts from C++20|last=Josuttis|first=Nicolai|access-date=2019-08-20|archive-date=2020-08-13|archive-url=https://web.archive.org/web/20200813202348/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1823r0.pdf|url-status=live}}</ref>
* सबस्क्रिप्ट एक्सप्रेशंस में कॉमा ऑपरेटर का उपयोग बहिष्कृत कर दिया गया है<ref name="open-std.org">{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r2.html|title=P1161R2: Deprecate uses of the comma operator in subscripting expressions|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-07-20|archive-url=https://web.archive.org/web/20190720101000/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r2.html|url-status=live}}</ref>
* सबस्क्रिप्ट एक्सप्रेशंस में कॉमा ऑपरेटर का उपयोग बहिष्कृत कर दिया गया है<ref name="open-std.org">{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r2.html|title=P1161R2: Deprecate uses of the comma operator in subscripting expressions|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-07-20|archive-url=https://web.archive.org/web/20190720101000/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r2.html|url-status=live}}</ref>
Line 170: Line 169:
* जोड़ें <code><=></code> मानक पुस्तकालय के लिए ऑपरेटर<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html|title=P1614R2: The Mothership has Landed - Adding <=> to the Library|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820002002/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html|url-status=live}}</ref>
* जोड़ें <code><=></code> मानक पुस्तकालय के लिए ऑपरेटर<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html|title=P1614R2: The Mothership has Landed - Adding <=> to the Library|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820002002/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1614r2.html|url-status=live}}</ref>
* मानक पुस्तकालय के लिए हेडर इकाइयां<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1502r1.html|title=P1502R1: Standard library header units for C++20|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001955/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1502r1.html|url-status=live}}</ref>
* मानक पुस्तकालय के लिए हेडर इकाइयां<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1502r1.html|title=P1502R1: Standard library header units for C++20|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001955/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1502r1.html|url-status=live}}</ref>
* तुल्यकालन सुविधाएं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1135r6.html|title=P1135R6: The C++20 Synchronization Library|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001959/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1135r6.html|url-status=live}}</ref> (से विलय: कुशल परमाणु प्रतीक्षा और सेमाफोर,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0514r4.pdf|title=P0514R4: Efficient concurrent waiting for C++20|publisher=|access-date=2019-07-20|archive-date=2018-08-18|archive-url=https://web.archive.org/web/20180818190437/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0514r4.pdf|url-status=live}}</ref> कुंडी और अवरोध,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0666r2.pdf|title=P0666R2: Revised Latches and Barriers for C++20|publisher=|access-date=2019-07-20|archive-date=2018-08-18|archive-url=https://web.archive.org/web/20180818190352/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0666r2.pdf|url-status=live}}</ref> में सुधार <code>atomic_flag</code>,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0995r1.html|title=P0995R1: Improving atomic_flag|publisher=|access-date=2019-07-20|archive-date=2019-07-20|archive-url=https://web.archive.org/web/20190720101004/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0995r1.html|url-status=live}}</ref> छोटे CPUs पर C++ को लागू करने योग्य न बनाएं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1258r0.html|title=P1285R0: Don't Make C++ Unimplementable On Small CPUs|publisher=|access-date=2019-07-20|archive-date=2019-07-15|archive-url=https://web.archive.org/web/20190715230819/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1258r0.html|url-status=live}}</ref>)
* तुल्यकालन सुविधाएं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1135r6.html|title=P1135R6: The C++20 Synchronization Library|date=2019-07-20|website=www.open-std.org|access-date=2019-07-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001959/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1135r6.html|url-status=live}}</ref> (से विलय: कुशल परमाणु प्रतीक्षा और सेमाफोर,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0514r4.pdf|title=P0514R4: Efficient concurrent waiting for C++20|publisher=|access-date=2019-07-20|archive-date=2018-08-18|archive-url=https://web.archive.org/web/20180818190437/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0514r4.pdf|url-status=live}}</ref> कुंडी और अवरोध,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0666r2.pdf|title=P0666R2: Revised Latches and Barriers for C++20|publisher=|access-date=2019-07-20|archive-date=2018-08-18|archive-url=https://web.archive.org/web/20180818190352/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0666r2.pdf|url-status=live}}</ref> में सुधार <code>atomic_flag</code>,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0995r1.html|title=P0995R1: Improving atomic_flag|publisher=|access-date=2019-07-20|archive-date=2019-07-20|archive-url=https://web.archive.org/web/20190720101004/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0995r1.html|url-status=live}}</ref> छोटे CPUs पर सी++ को प्रयुक्त करने योग्य न बनाएं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1258r0.html|title=P1285R0: Don't Make C++ Unimplementable On Small CPUs|publisher=|access-date=2019-07-20|archive-date=2019-07-15|archive-url=https://web.archive.org/web/20190715230819/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1258r0.html|url-status=live}}</ref>)
* <code>std::source_location</code><ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1208r6.pdf|title=P1208R6: Adopt source_location from Library Fundamentals V3 for C++20|access-date=2019-08-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820002002/http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1208r6.pdf|url-status=live}}</ref>
* <code>std::source_location</code><ref>{{cite web|url=http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1208r6.pdf|title=P1208R6: Adopt source_location from Library Fundamentals V3 for C++20|access-date=2019-08-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820002002/http://open-std.org/JTC1/SC22/WG21/docs/papers/2019/p1208r6.pdf|url-status=live}}</ref>
* <code>constexpr</code> कंटेनर (<code>std::string</code>,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0980r1.pdf|title=P0980R1: Making std::string constexpr|access-date=2020-07-30|archive-date=2020-09-29|archive-url=https://web.archive.org/web/20200929222645/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0980r1.pdf|url-status=live}}</ref> <code>std::vector</code><ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1004r2.pdf|title=P1004R2: Making std::vector constexpr|access-date=2020-07-30|archive-date=2020-09-28|archive-url=https://web.archive.org/web/20200928192253/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1004r2.pdf|url-status=live}}</ref>)
* <code>constexpr</code> कंटेनर (<code>std::string</code>,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0980r1.pdf|title=P0980R1: Making std::string constexpr|access-date=2020-07-30|archive-date=2020-09-29|archive-url=https://web.archive.org/web/20200929222645/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0980r1.pdf|url-status=live}}</ref> <code>std::vector</code><ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1004r2.pdf|title=P1004R2: Making std::vector constexpr|access-date=2020-07-30|archive-date=2020-09-28|archive-url=https://web.archive.org/web/20200928192253/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1004r2.pdf|url-status=live}}</ref>)
* <code>std::stop_token</code> और धागे में सम्मिलित होना (<code>std::jthread</code>)<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0660r10.pdf|title=P0660R10: Stop Token and Joining Thread|access-date=2019-08-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001959/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0660r10.pdf|url-status=live}}</ref>
* <code>std::stop_token</code> और धागे में सम्मिलित होना (<code>std::jthread</code>)<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0660r10.pdf|title=P0660R10: Stop Token and Joining Thread|access-date=2019-08-20|archive-date=2019-08-20|archive-url=https://web.archive.org/web/20190820001959/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0660r10.pdf|url-status=live}}</ref>
नवंबर 2019 (बेलफास्ट) में फॉल मीटिंग में एनबी टिप्पणी प्रस्ताव के दौरान लागू किए गए परिवर्तनों में सम्मिलित हैं:<ref>[https://wg21.link/n4814 fall meeting in November 2019]</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/dtuov8/201911_belfast_iso_c_committee_trip_report/|title=r/cpp - 2019-11 Belfast ISO C++ Committee Trip Report — Started Processing Feedback on the C++20 Committee Draft; ABI Review Group Formed|website=reddit|language=en-US|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109121426/https://www.reddit.com/r/cpp/comments/dtuov8/201911_belfast_iso_c_committee_trip_report/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/11/09/trip-report-autumn-iso-c-standards-meeting-belfast/|title=Trip report: Autumn ISO C++ standards meeting (Belfast)|last=Sutter|first=Herb|date=2019-11-09|website=Sutter's Mill|language=en|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109130530/https://herbsutter.com/2019/11/09/trip-report-autumn-iso-c-standards-meeting-belfast/|url-status=live}}</ref><ref>{{cite web|url=https://botondballo.wordpress.com/2019/11/15/trip-report-c-standards-meeting-in-belfast-november-2019/|title=Trip Report: C++ Standards Meeting in Belfast, November 2019|last=botondballo|date=2019-11-15|website=There's Waldo!|language=en|access-date=2019-11-24|archive-date=2019-11-20|archive-url=https://web.archive.org/web/20191120074550/https://botondballo.wordpress.com/2019/11/15/trip-report-c-standards-meeting-in-belfast-november-2019/|url-status=live}}</ref>
नवंबर 2019 (बेलफास्ट) में फॉल मीटिंग में एनबी टिप्पणी प्रस्ताव के दौरान प्रयुक्त किए गए परिवर्तनों में सम्मिलित हैं:<ref>[https://wg21.link/n4814 fall meeting in November 2019]</ref><ref>{{cite web|url=https://www.reddit.com/r/cpp/comments/dtuov8/201911_belfast_iso_c_committee_trip_report/|title=r/cpp - 2019-11 Belfast ISO C++ Committee Trip Report — Started Processing Feedback on the C++20 Committee Draft; ABI Review Group Formed|website=reddit|language=en-US|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109121426/https://www.reddit.com/r/cpp/comments/dtuov8/201911_belfast_iso_c_committee_trip_report/|url-status=live}}</ref><ref>{{cite web|url=https://herbsutter.com/2019/11/09/trip-report-autumn-iso-c-standards-meeting-belfast/|title=Trip report: Autumn ISO C++ standards meeting (Belfast)|last=Sutter|first=Herb|date=2019-11-09|website=Sutter's Mill|language=en|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109130530/https://herbsutter.com/2019/11/09/trip-report-autumn-iso-c-standards-meeting-belfast/|url-status=live}}</ref><ref>{{cite web|url=https://botondballo.wordpress.com/2019/11/15/trip-report-c-standards-meeting-in-belfast-november-2019/|title=Trip Report: C++ Standards Meeting in Belfast, November 2019|last=botondballo|date=2019-11-15|website=There's Waldo!|language=en|access-date=2019-11-24|archive-date=2019-11-20|archive-url=https://web.archive.org/web/20191120074550/https://botondballo.wordpress.com/2019/11/15/trip-report-c-standards-meeting-in-belfast-november-2019/|url-status=live}}</ref>
* <!-- US 114 --> गैर-प्रकार टेम्पलेट पैरामीटर्स (एनटीटीपी) में वर्ग प्रकार: उपयोगकर्ता परिभाषित नहीं होने का प्रतिबंध <code>operator==</code> अनुमति को हटा दिया गया है क्योंकि टेम्पलेट तर्क समानता का अर्थ तलाक दे दिया गया है <code>operator==</code>.<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1907r0.html|title=P1907R0: Inconsistencies with non-type template parameters|date=2019-10-07|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111420/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1907r0.html|url-status=live}}</ref> यह वर्ग-प्रकार NTTP में सरणी सदस्यों के लिए भी अनुमति देता है।
* <!-- US 114 --> गैर-प्रकार टेम्पलेट पैरामीटर्स (एनटीटीपी) में वर्ग प्रकार: उपयोगकर्ता परिभाषित नहीं होने का प्रतिबंध <code>operator==</code> अनुमति को हटा दिया गया है क्योंकि टेम्पलेट तर्क समानता का अर्थ तलाक दे दिया गया है <code>operator==</code>.<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1907r0.html|title=P1907R0: Inconsistencies with non-type template parameters|date=2019-10-07|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111420/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1907r0.html|url-status=live}}</ref> यह वर्ग-प्रकार NTTP में सरणी सदस्यों के लिए भी अनुमति देता है।
* <!-- US 102 --> फ़्लोटिंग-पॉइंट प्रकार,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1714r1.html|title=P1714: NTTP are incomplete without float, double, and long double! (Revision 1)|date=2019-07-19|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111421/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1714r1.html|url-status=live}}</ref> पॉइंटर्स और संदर्भ और यूनियन और यूनियन-जैसी कक्षाएं (गुमनाम यूनियनों वाले वर्ग प्रकार) को अब एनटीटीपी के रूप में अनुमति दी गई है।
* <!-- US 102 --> फ़्लोटिंग-पॉइंट प्रकार,<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1714r1.html|title=P1714: NTTP are incomplete without float, double, and long double! (Revision 1)|date=2019-07-19|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111421/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1714r1.html|url-status=live}}</ref> पॉइंटर्स और संदर्भ और यूनियन और यूनियन-जैसी कक्षाएं (गुमनाम यूनियनों वाले वर्ग प्रकार) को अब एनटीटीपी के रूप में अनुमति दी गई है।
Line 186: Line 185:
* <!-- P1959 --> <code>std::weak_equality</code> और <code>std::strong_equality</code> उपयोग में न होने के कारण इन्हें हटा दिया गया है
* <!-- P1959 --> <code>std::weak_equality</code> और <code>std::strong_equality</code> उपयोग में न होने के कारण इन्हें हटा दिया गया है
* <!-- P1645 --> में एल्गोरिदम <code>&lt;numeric&gt;</code> बनाया गया है <code>constexpr</code>
* <!-- P1645 --> में एल्गोरिदम <code>&lt;numeric&gt;</code> बनाया गया है <code>constexpr</code>
* <!-- P1902 --> C++20 के नए या बदले हुए फीचर के लिए मिसिंग फीचर-टेस्ट मैक्रोज़ जोड़े गए हैं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1902r0.html|title=Missing feature-test macros 2018-2019|date=2019-10-06|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111423/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1902r0.html|url-status=live}}</ref>
* <!-- P1902 -->सी++20 के नए या बदले हुए फीचर के लिए मिसिंग फीचर-टेस्ट मैक्रोज़ जोड़े गए हैं<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1902r0.html|title=Missing feature-test macros 2018-2019|date=2019-10-06|website=www.open-std.org|access-date=2019-11-09|archive-date=2019-11-09|archive-url=https://web.archive.org/web/20191109111423/http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1902r0.html|url-status=live}}</ref>




Line 196: Line 195:
* [https://www.iso.org/standard/79358.html Link to purchase ISO/IEC 14882:2020] from the ISO online store.
* [https://www.iso.org/standard/79358.html Link to purchase ISO/IEC 14882:2020] from the ISO online store.
* [https://isocpp.org/files/papers/N4860.pdf N4860], the final draft version of the standard.
* [https://isocpp.org/files/papers/N4860.pdf N4860], the final draft version of the standard.
* [http://www.open-std.org/jtc1/sc22/wg21/ JTC1/SC22/WG21]{{snd}} the ISO/IEC C++ Standard Working Group (a.k.a. the C++ Standards Committee)
* [http://www.open-std.org/jtc1/sc22/wg21/ JTC1/SC22/WG21]{{snd}} the ISO/IEC सी++ Standard Working Group (a.k.a. the सी++ Standards Committee)
* Ranges ([https://github.com/ericniebler/range-v3 range-v3]) GitHub repository, by Eric Niebler
* Ranges ([https://github.com/ericniebler/range-v3 range-v3]) GitHub repository, by Eric Niebler



Revision as of 12:29, 28 February 2023

सी++20 सी++ प्रोग्रामिंग भाषा के लिए मानकीकरण के लिए अंतर्राष्ट्रीय संगठन या अंतर्राष्ट्रीय इंटरनेशनल इलेक्ट्रोटेक्नीकल कमीशन मानक का एक संस्करण है। सी++20 ने सी++ मानक के पूर्व संस्करण को बदल दिया। जिसे सी++17 कहा जाता है।[1] मानक को विधि रूप से अंतिम रूप दिया गया था।[2] फरवरी 2020 में प्राहा में बैठक में आईएसओ/आईईसी जेटीसी 1/एससी 22 द्वारा[3] 4 सितंबर 2020 को स्वीकृत किया गया[4][5] और दिसंबर 2020 में प्रकाशित हुआ।[6]


सुविधाएँ

सी++20 सी++14 या सी++17 की तुलना में अधिक नई प्रमुख विशेषताएं जोड़ता है।[7] सी++20 में स्वीकार किए गए परिवर्तनों में भी सम्मिलित हैं।[8]


भाषा