C++
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2024 mailing2024-04 å ¨é¨ã§113æ¬ããã¾ãã ä¸é¨ã®è¨äºã¯æ¬¡ã®æ¹ã«æä¼ã£ã¦ããã ãã¦ãã¾ãããããã¨ããããã¾ãã @Sakky4869 ããã N4984 WG21 June 2024 Admin Minutes of Meeting N4985 WG21 2024-06 St Louis Mâ¦
ï¼»C++ï¼½ æ¡å¼µæµ®åå°æ°ç¹æ°åã®å¤æã©ã³ã¯ã«é¢ããè¦å®ã®ããä¸æã«ã¤ãã¦
ãã®è¨äºã¯C++ Advent Calendar 2024ã®3æ¥ç®ã®è¨äºã§ãã æ¡å¼µæµ®åå°æ°ç¹æ°åã«ã¤ãã¦ã¯ãã¾ã詳ãã説æããªãã®ã§ä»ã®ãã¼ã¸ãåç §ãã¦ãã ããã <stdfloat> - cpprefjp Standard library header (C++23) - cppreference ãªããæ¸ãã¦ã¿ããèªæãªæãããã¦ãã¾ã</stdfloat>â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2024 mailing2024-05 å ¨é¨ã§139æ¬ããã¾ãã ããã N4983 WG21 agenda: 24-29 June 2024, St. Louis, MO, USA P0260R9 C++ Concurrent Queues P0843R12 inplace_vector P0963R2 Structured binding declaration as a coâ¦
std::pairã®é åã®åæå㧠éæä½ã¡ã³ããæã¤éæä½ã§ããã㨠åèæç® std::pairã®é åã®åæå㧠std::array<std::pair<int, int>, N>ã®ãããªé åãåæåããå ´åãä½ãèããã«æ¸ãã¨ãããªãããããã¾ãã #include <array> #include <utility> int main() { // ã¨ã©ã¼ã«ãªã std::array<std::pair<int, int></std::pair<int,></utility></array></std::pair<int,>â¦
std::atomicã®å¾ æ©ã»éç¥API std::condition_variable æ¯è¼ ã·ã°ãã«ã»ã¼ãï¼ åèæç® std::atomicã®å¾ æ©ã»éç¥API C++20ã§ã¯std::atomicï¼std::atomic_flag/std::atomic_refï¼ã«å¾ æ©ã¨éç¥ãè¡ãã¡ã³ãé¢æ°ã追å ãããstd::atomicãªãã¸ã§ã¯ãã«ãã£ã¦ã¹â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2024 mailing2024-04 å ¨é¨ã§173æ¬ããã¾ãã ä»æåã¯@Reputelessããã«ä¸é¨æä¼ã£ã¦ããã ãã¾ããããããã¨ããããã¾ããï¼ ããã N4974 Wroclaw meeting information N4975 2024 WG21 admin telecon meetings N497â¦
C++23ãããå®æ°å¼ã«ããããéå®æ°å¼ãªåç §ã®èªã¿åãï¼ç¹ã«ã³ãã¼ï¼ãå®æ°å¼ã«ããã¦è¨±å¯ãããããã«ãªãã¾ãã å®æ°å¼ã«ãããéå®æ°å¼ã®åç § ãããããã¨ã¨ãããããªãã㨠å®æ°å¼ã«ãããåç §ãã®ãã®ã®èªã¿åãã®è¨±å¯ æ¬ é¥å ±å requireså¼ã®å¼æ° stâ¦
â» printfã¨ãã®ä»²éãã¡ã«é¢ããè¨äºã§ã¯ããã¾ãã ãã©ã¼ãããæååã¨ãã©ã¡ã¼ã¿ãã㯠ã³ã³ãã¤ã«æçæ å®è¡æãã©ã¼ãããã使ã std::tie() std::tupleã®ãã©ã¼ããããªãã·ã§ã³ åèæç® ãã©ã¼ãããæååã¨ãã©ã¡ã¼ã¿ãã㯠std::format()ããã³â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2024 mailing2024-02 å ¨é¨ã§112æ¬ããã¾ãã ããã P0493R5 Atomic maximum/minimum P0843R10 inplace_vector P0876R15 fiber_context - fibers without scheduler P1061R7 Structured Bindings can introduce a Pack Pâ¦
åæåããã«åæåãããä¸è¦çç¾ãã¦ããããã«ããæããªãè¡ãã¯ããããçé åã®å ´åã¯æ¬¡ã®ããã«åæåããªããåæåããªããã¨ã«ãã£ã¦è¡ããã¨ãã§ãã¾ã int main() { int array_uninit[5]; // åè¦ç´ ã¯æªåæå int array_zeroinit[5]{}; // åè¦â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2024 mailing2024-01 å ¨é¨ã§22æ¬ããã¾ãã ããã P1255R11 A view of 0 or 1 elements: views::maybe P1255R12 A view of 0 or 1 elements: views::maybe P1709R5 Graph Library P2019R5 Thread attributes P2527R3 stâ¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-12 å ¨é¨ã§125æ¬ããã¾ãã ããã N4966 St. Louis Meeting Invitation and Information N4967 WG21 2023-10 Admin telecon minutes N4970 WG21 2023-11 Kona Minutes of Meeting N4971 Working Draft,â¦
ã³ã³ãã¤ã«æåçã¡ã¢ãªç¢ºä¿ã®å¶ç´ ã³ã³ãã¤ã«æSSOï¼ æ大æåæ° å®è£ ç¶æ³ å®è£ ã«ã¤ã㦠std::vectorã®å ´å åèæç® ã³ã³ãã¤ã«æåçã¡ã¢ãªç¢ºä¿ã®å¶ç´ C++20ã§ã³ã³ãã¤ã«æã®åçã¡ã¢ãªç¢ºä¿ãå¯è½ã«ãªããããã«ä¼´ã£ã¦std::vectorã¨std::stringãå®å ¨ã«å®â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-10 å ¨é¨ã§80æ¬ããã¾ãã ããã N4961 2024-03 Tokyo meeting information N4962 WG21 agenda: 6-11 November 2023, Kona, HI N4963 2023 WG21 admin telecon meetings, rev. 2 N4964 Working Draft, â¦
ãã®è¨äºã¯C++ã¢ããã³ãã«ã¬ã³ãã¼2023 25æ¥ç®ã®è¨äºã§ãããåå ã®çæ§ãç²ãæ§ã§ããï¼ C++ Contracts C++20 Contracts åé¡ç¹ã¨MVP(Minimum Viable Product) æåã®MVPä»æ§ é¢æ°ã®å宣è¨ã¨å¥ç´æ³¨é å¼æ°ã®äºå¾æ¡ä»¶ããã®åç § å¥ç´æ¡ä»¶å¼ã®å¯ä½ç¨ C++26ã«â¦
ãã®è¨äºã¯C++ã¢ããã³ãã«ã¬ã³ãã¼2023 11æ¥ç®ã®è¨äºã§ãã C++26ã«å¯¾ãã¦ç¾å¨ãä¸é¨ã®UBãç½®ãæããæ¦å¿µã¨ãã¦EBã¨ãããã®ãè°è«ããã¦ãã¾ãã EBã¨ã¯ è¦å® çµç·¯ ä»ã®EBåè£ã«ã¤ã㦠åèæç® EBã¨ã¯ EBã¯Erroneous Behaviourã®ç¥ç§°ã§ãããEBã¯UBåæ§â¦
C++26ããã使ç¨ããªãå¤ã«å¯¾ããå ±éããå¤æ°åã¨ãã¦_ï¼U+005Fãã¢ã³ãã¼ã¹ã³ã¢/ã¢ã³ãã¼ãã¼ï¼ãè¨èªãµãã¼ãä»ãã§ä½¿ç¨ã§ããããã«ãªãã¾ãã [[nodiscard]] auto f() -> int; auto g() -> std::tuple<int, double, std::string>; int main() { auto _ = f(); // okãè¦åãªã aut</int,>â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-09 å ¨é¨ã§40æ¬ããã¾ãã ããã P0843R9 inplace_vector P1068R9 Vector API for random number generation P1255R10 A view of 0 or 1 elements: views::maybe P2264R5 Make assert() macro user friâ¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-08 å ¨é¨ã§44æ¬ããã¾ãã ããã N4956 Concurrency TS2 PDTS N4958 Working Draft, Programming Languages -- C++ N4959 Editors' Report, Programming Languages -- C++ N4960 Business Plan and Conâ¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-07 å ¨é¨ã§106æ¬ããã¾ãã ããã N4955 WG21 2023-06 Admin telecon minutes N4957 WG21 February 2023 Minutes of Meeting P0260R6 C++ Concurrent Queues P0260R7 C++ Concurrent Queues P0543R3 Saâ¦
C++23ããauto(x)ã®å½¢å¼ã®ãã£ã¹ããå¯è½ã«ãªãã¾ãã template<std::copy_constructible T> void f(T x) { T p = auto(x); // okãC++23ãã } ããã«é¢é£ããä»æ§çã®ã¡ã¢ã§ãã prvalueå¤ã¸ã®ãã£ã¹ã ç´°ããä»æ§ã®è©± å©ç¹ãç¨é decay-copyã¨ã®éã è¦æ ¼æ¸ã«ãããç½®ãæã ã³ã³ã»ã</std::copy_constructible>â¦
C++23ã§è¿½å ããã<ranges>é¢é£ã®å°ããã®ã¦ã¼ãã£ãªãã£ãã¾ã¨ãã¦ããã¾ããããã«ã¯æ°ãããã¡ã¯ããª/ã¢ããã¿ãranges::toã¯å«ã¾ãã¦ãã¾ãããããã§ç´¹ä»ãããã®ã¯åºæ¬çã«std::rangesåå空éã«ããã¾ãããåå空éæå®ãçç¥ãã¦ãã¾ãã const_iterator_t/</ranges>â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-05 å ¨é¨ã§122æ¬ããã¾ãã ä¸é¨ã®è¨äºã¯æ¬¡ã®æ¹ã ã«æä¼ã£ã¦ããã ãã¾ããããååãããã¨ããããã¾ããï¼ @Reputelessãã ããã N4946 2024-03 Tokyo meeting information N4947 INCITS C++/WG21 â¦
mdspanãåå¼·ã®ã¡ã¢ã§ããããã§ã®ãµã³ãã«ã³ã¼ãã¯å ¨ã¦kokkos/mdspanãç¨ãã¦å®è¡ãã¦ãã¾ããæ¨æºã®std::mdspanã«æºæ ãã¦å®è£ ããã¦ããã®ã§ããããæåã¯å¤ãããªãã§ãããã ã¤ã³ã¿ã¼ãªã¼ãã¬ã¤ã¢ã¦ã mdspanã®ã«ã¹ã¿ãã¤ãº ã¬ã¤ã¢ã¦ãããªã·ã¼åã®æ§â¦
å¼ã®éçåï¼static typeï¼ã¯åç §åã«ãªããªããããªãã¡ãå¼ã®éçåã¯å¤ã«ãã´ãªã®æ å ±ãå«ã¾ãªãããããã¯ãå¼ã®éçåã¨å¼ã®å¤ã«ãã´ãªã¯ç´è¡ããæ¦å¿µã§ãããã¨ãããã¨ã«é¢ããã¡ã¢ã§ãã 以ä¸ãè¦æ ¼æ¸ã®æé¢ã¯C++20è¦æ ¼ã¨åçã®ãã©ããã§ããN4861â¦
C++ã®throwå¼ã¯ã©ããªåã®ãªãã¸ã§ã¯ãã§ãã£ã¦ãæãããã¨ãã§ãã¾ãããã®æ¯éã¯ç½®ãã¦ããã¦ãããthrowå¼ã«å¯¾ãã¦é©åã«catchç¯ï¼ä¾å¤ãã³ãã©ï¼ãç¨æããã¦ããå ´åã«ãå¼ã³åºãããä¾å¤ãã³ãã©ã¯å³å¯ã«ã©ã®ããã«æ±ºã¾ãã®ã§ããããï¼ãªãã¨ãªãthrâ¦
å æ¥zennã«æéãããviews::as_constã«ã¤ãã¦ã®è¨äºãæ¸ãã¦ããã¨ãã«èª¿ã¹ããconst_iteratorã®è¦ç´ åï¼åç §åï¼ã®æ±ºå®éç¨ã«é¢ããã¡ã¢ã§ãã C++23 ã®viewãè¦ã3 - As const view - zenn 以ä¸ãviews::as_constã«é¢ãã¦ã¯ç¥ã£ã¦ãããã®ã¨ãã¦èª¬æãã¾â¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-04 SG22ã®WG14ããã®ãã®ãé¤ãã¦ãå ¨é¨ã§41æ¬ããã¾ãã N4940 WG21 2022-11 Kona Minutes of Meeting V2 N4941 INCITS C++/WG21 Agenda: 6-11 February 2023, Issaquah, WA USA N4942 WG21 2023-01 Aâ¦
ææ¸ã®ä¸è¦§ JTC1/SC22/WG21 - Papers 2022 mailing2023-02 SG22ã®WG14ããã®ãã®ãé¤ãã¦ãå ¨é¨ã§102æ¬ããã¾ãã P0290R3 apply() for synchronized_value P0290R4 apply() for synchronized_value P0447R21 Introduction of std::hive to the standard libâ¦
constexpr ifï¼æ§æã¨ãã¦ã¯if constexprï¼ã®æ¡ä»¶ã«ã¯boolã«å¤æå¯è½ãªä»»æã®å®æ°å¼ã使ç¨ã§ãã¾ããè¤æ°ã®æ¡ä»¶ã«ãã£ã¦åå²ããããå ´åãèªç¶ã«&&ãããã¯||ã«ãã£ã¦è¤æ°ã®æ¡ä»¶å¼ãã¤ãªãããã¨ã«ãªãã§ããããããã¦ãã®å ´åãæ¡ä»¶å¼ã«ã¯å·¦ããå³ã¸ã®è©â¦