{"id":336194,"date":"2022-07-26T09:00:14","date_gmt":"2022-07-26T09:00:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=336194"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=336194","title":{"rendered":"<span>Feature freeze \u0421++23. \u0418\u0442\u043e\u0433\u0438 \u043b\u0435\u0442\u043d\u0435\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0438 \u043a\u043e\u043c\u0438\u0442\u0435\u0442\u0430<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/k3\/ay\/8j\/k3ay8ji3lxa1_bpqaxlkcfsp1da.jpeg\" width=\"70%\" data-src=\"https:\/\/habrastorage.org\/webt\/k3\/ay\/8j\/k3ay8ji3lxa1_bpqaxlkcfsp1da.jpeg\" data-blurred=\"true\"\/><\/div>\n<p>  \u041d\u0430 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 C++ \u00ab\u043f\u0440\u043e\u0440\u0432\u0430\u043b\u043e\u00bb, \u0438 \u0432 \u0447\u0435\u0440\u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e C++23 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438:<\/p>\n<ul>\n<li><code>std::mdspan<\/code><\/li>\n<li><code>std::flat_map<\/code><\/li>\n<li><code>std::flat_set<\/code><\/li>\n<li>freestanding<\/li>\n<li><code>std::print(\"Hello {}\", \"world\")<\/code><\/li>\n<li>\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 ranges<\/li>\n<li><code>constexpr<\/code> \u0434\u043b\u044f <code>bitset<\/code>, <code>to_chars\/from_chars<\/code><\/li>\n<li><code>std::string::substr() &amp;&amp;<\/code><\/li>\n<li><code>import std;<\/code><\/li>\n<li><code>std::start_lifetime_as<\/code><\/li>\n<li><code>static operator()<\/code><\/li>\n<li><code>[[assume(x > 0)]];<\/code><\/li>\n<li>16- \u0438 128-\u0431\u0438\u0442\u043d\u044b\u0435 float<\/li>\n<li><code>std::generator<\/code><\/li>\n<li>\u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e<\/li>\n<\/ul>\n<p><a name=\"habracut\"><\/a>   <\/p>\n<h2>std::mdspan<\/h2>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u044b\u0439 <code>operator[]<\/code>, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f <code>std::mdspan<\/code> \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0430\u0441\u044c \u043d\u0430 \u043f\u043e\u0440\u044f\u0434\u043e\u043a. \u0418 \u0432\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0441\u0442\u044c \u043d\u0435\u0432\u043b\u0430\u0434\u0435\u044e\u0449\u0438\u0439 \u0442\u0438\u043f \u043c\u043d\u043e\u0433\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430:<\/p>\n<pre><code class=\"cpp\">  using Extents = std::extents&lt;std::size_t, 42, 32, 64>;   double buffer[       Extents::static_extent(0)       * Extents::static_extent(1)       * Extents::static_extent(2)   ];   std::mdspan&lt;double, Extents> A{ buffer };    assert( 3 == A.rank() );   assert( 42 == A.extent(0) );   assert( 32 == A.extent(1) );   assert( 64 == A.extent(2) );   assert( A.size() == A.extent(0) * A.extent(1) * A.extent(2) );   assert( &amp;A(0,0,0) == buffer ); <\/code><\/pre>\n<p>  \u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u044f\u0437\u044b\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0422\u0430\u043a, <code>std::mdspan<\/code> \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043b\u0430\u0441\u0441-layout \u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432:<\/p>\n<ul>\n<li><code>std::layout_right<\/code> \u2014 \u0441\u0442\u0438\u043b\u044c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f C \u0438\u043b\u0438 C++, \u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0434\u0443\u0442 \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c,<\/li>\n<li><code>std::layout_left<\/code> \u2014 \u0441\u0442\u0438\u043b\u044c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0424\u043e\u0440\u0442\u0440\u0430\u043d\u0430 \u0438\u043b\u0438 \u041c\u0430\u0442\u043b\u0430\u0431\u0430, \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0438\u0434\u0443\u0442 \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c.<\/li>\n<\/ul>\n<p>  \u0412\u0441\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 <a href=\"https:\/\/wg21.link\/P0009\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P0009<\/a>. \u0410\u0432\u0442\u043e\u0440\u044b \u043e\u0431\u0435\u0449\u0430\u043b\u0438 \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u043e\u0432\u043e\u0433\u043e <code>std::mdspan<\/code>.<\/p>\n<h2>std::flat_map \u0438 std::flat_set<\/h2>\n<p>  \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b flat_* \u0438\u0437 Boost \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 C++. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0438\u0448\u043a\u0430 \u044d\u0442\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u2014 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u00ab\u043f\u043b\u043e\u0441\u043a\u0438\u0435\u00bb \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u0445\u0440\u0430\u043d\u044f\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u043b\u043e\u043a\u0430\u0446\u0438\u0439 \u0438 \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0430 O(log N) \u0438, \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u043a\u0438 O(N), \u043f\u043b\u043e\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b \u043e\u0431\u0433\u043e\u043d\u044f\u044e\u0442 <code>std::unordered_map<\/code> \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445.<\/p>\n<p>  \u041f\u0440\u0430\u0432\u0434\u0430, \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b flat_* \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0438\u0436\u0435\u043b\u0435\u0436\u0430\u0449\u0443\u044e \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432: <\/p>\n<pre><code class=\"cpp\">  template &lt;std::size_t N>   using MyMap = std::flat_map&lt;       std::string, int, std::less&lt;>,       mylib::stack_vector&lt;std::string, N>, mylib::stack_vector&lt;int, N>   >;      static MyMap&lt;3> kCoolestyMapping = {     {\"C\", -200},     {\"userver\", -273},     {\"C++\", -273},   };      assert( kCoolestyMapping[\"userver\"] == -273 );      const auto&amp; keys = kCoolestyMapping.keys(); \/\/ \u0412\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u0435\u043d\u043e Python :)    assert( keys.back() == \"userver\" );<\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Boost-\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 \u043a\u043b\u044e\u0447\u0438 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043b\u0435\u0436\u0430\u0442 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u0438 \u0432\u043e flat-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445 \u0437\u0430 \u0441\u0447\u0451\u0442 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439.<\/p>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <code>std::flat_set<\/code> \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/wg21.link\/P1222\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P1222<\/a>, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 <code>std::flat_map<\/code> \u0432 <a href=\"https:\/\/wg21.link\/P0429\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P0429<\/a>.<\/p>\n<h2>Freestanding<\/h2>\n<p>  \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 C++ \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u0430\u043a <code>hosted<\/code> \u0438 <code>freestanding<\/code>. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f <code>hosted<\/code> \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. <code>Freestanding<\/code> \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u041e\u0421, \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0435\u0437\u043a\u0435 \u0438 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f <code>freestanding<\/code>, \u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0436\u0435\u043b\u0435\u0437\u043e\u043a \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u042d\u0442\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u043b\u043e \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438 \u043f\u043e\u0434\u0440\u044b\u0432\u0430\u043b\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u044c C++ \u0432 embedded-\u0441\u0440\u0435\u0434\u0435.<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c! \u0412 <a href=\"https:\/\/wg21.link\/P1642\">P1642<\/a> \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u043b\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u043b\u044f <code>freestanding<\/code> \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<h2>std::print<\/h2>\n<p>  \u0412 C++20 \u0432\u043d\u0435\u0441\u043b\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 fmt. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0439, \u0447\u0442\u043e \u0435\u0451 \u043d\u0430\u0447\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0435\u0437\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430:<\/p>\n<pre><code class=\"cpp\">  std::cout &lt;&lt; std::format(\"Hello, {}! You have {} mails\", username, email_count); <\/code><\/pre>\n<p>  \u041d\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<ul>\n<li>\u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442 \u043b\u0438\u0448\u043d\u0438\u0435 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043b\u043b\u043e\u043a\u0430\u0446\u0438\u0438,<\/li>\n<li><code>std::cout<\/code> \u0431\u0443\u0434\u0435\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443,<\/li>\n<li>\u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u042e\u043d\u0438\u043a\u043e\u0434\u0430,<\/li>\n<li>\u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430,<\/li>\n<li>\u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u043e.<\/li>\n<\/ul>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u043e\u0431\u0435\u0434\u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432 <code>std::print<\/code>:<\/p>\n<pre><code class=\"cpp\">  std::print(\"\u041f\u0440\u0438\u0432\u0435\u0442, {}! \u0423 \u0432\u0430\u0441 {} \u043f\u0438\u0441\u0435\u043c\", username, email_count); <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c c <code>FILE*<\/code> \u0438\u043b\u0438 \u0441\u0442\u0440\u0438\u043c\u0430\u043c\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 <a href=\"https:\/\/wg21.link\/P2093\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P2093<\/a>.<\/p>\n<h2>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439<\/h2>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f <a href=\"https:\/\/wg21.link\/P2286\">P2286<\/a>, <code>std::format<\/code> (\u0438 <code>std::print<\/code>) \u043e\u0431\u0437\u0430\u0432\u0435\u043b\u0438\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u2014 \u0432\u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b \u043b\u0438 \u043e\u043d\u0438 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b <code>std::ranges::views::*<\/code>:<\/p>\n<pre><code class=\"cpp\">  std::print(\"{}\", std::vector&lt;int>{1, 2, 3});  \/\/ \u0412\u044b\u0432\u043e\u0434: [1, 2, 3]   std::print(\"{}\", std::set&lt;int>{1, 2, 3});     \/\/ \u0412\u044b\u0432\u043e\u0434: {1, 2, 3}   std::print(\"{}\", std::pair{42, 16});          \/\/ \u0412\u044b\u0432\u043e\u0434: (42, 16)    std::vector v1 = {1, 2};   std::vector v2 = {'a', 'b', 'c'};   auto val = std::format(\"{}\", std::views::zip(v1, v2));   \/\/ [(1, 'a'), (2, 'b')] <\/code><\/pre>\n<p>  <\/p>\n<h2>constexpr<\/h2>\n<p>  \u041e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430: <code>std::to_chars\/std::from_chars<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0434\u043b\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u0431\u0438\u043d\u0430\u0440\u043d\u043e\u0435. \u0422\u0430\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 DSL. \u041c\u044b \u0432 Yandex Go \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0432\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 userver.<\/p>\n<p>  <code>std::bitset<\/code> \u0442\u043e\u0436\u0435 \u0441\u0442\u0430\u043b <code>constexpr<\/code>, \u0442\u0430\u043a \u0447\u0442\u043e \u0438 \u0441 \u0431\u0438\u0442\u0430\u043c\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<\/p>\n<p>  \u0414\u0430\u043d\u0438\u0438\u043b \u0413\u043e\u0447\u0430\u0440\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0434 <a href=\"https:\/\/wg21.link\/P2417\">std::bitset P2417<\/a> \u0438, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u043c \u041a\u0430\u0440\u0430\u0435\u0432\u044b\u043c, \u043d\u0430\u0434 <a href=\"https:\/\/wg21.link\/P2291\">std::to_chars\/std::from_chars P2291<\/a>. \u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0438\u043c \u0437\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443! \u041e\u0431\u043e\u0438\u0445 \u0440\u0435\u0431\u044f\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0447\u0430\u0442\u0438\u043a\u0435 \u043f\u043e C++ <a href=\"https:\/\/t.me\/ProCxx\">pro.cxx<\/a> \u0438 \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<h2>import std;<\/h2>\n<p>  \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u043e\u0439 <code>import std;<\/code>. \u0412\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u0432 11 \u0440\u0430\u0437 (\u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0432 40 \u0440\u0430\u0437!), \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0441\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438. \u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u0435\u0441\u0442\u044c \u0432 <a href=\"https:\/\/wg21.link\/P2412\">P2412<\/a>.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430 C++ \u0441 \u043a\u043e\u0434\u043e\u043c \u043d\u0430 C \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 C-\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e namesapce, \u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0432\u0430\u0441 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c <code>std.compat<\/code>. \u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0432 \u0435\u0433\u043e, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043d\u043e \u0438 \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 C, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>::fopen<\/code> \u0438 <code>::isblank<\/code>.<\/p>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0430\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 <a href=\"https:\/\/wg21.link\/P2465\">P2465<\/a> \u043d\u0430 \u043d\u043e\u0432\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c.<\/p>\n<h2>std::start_lifetime_as<\/h2>\n<p>  \u0422\u0438\u043c\u0443\u0440 \u0414\u0443\u043c\u043b\u0435\u0440 \u0438 \u0420\u0438\u0447\u0430\u0440\u0434 \u0421\u043c\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043f\u043e\u0434\u0430\u0440\u043e\u043a \u0432\u0441\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c embedded- \u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0438 \u0432\u0441\u0451 \u043e\u0431\u044f\u0437\u0430\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c:<\/p>\n<pre><code class=\"cpp\">struct ProtocolHeader {   unsigned char version;   unsigned char msg_type;   unsigned char chunks_count; };  void ReceiveData(std::span&lt;std::byte> data_from_net) {     if (data_from_net.size() &lt; sizeof(ProtocolHeader)) throw SomeException();     const auto* header = std::start_lifetime_as&lt;ProtocolHeader>(         data_from_net.data()     );     switch (header->type) {         \/\/ ...     } } <\/code><\/pre>\n<p>  \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0431\u0435\u0437 <code>reinterpret_cast<\/code> \u0438 \u043d\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0431\u0443\u0444\u0435\u0440\u044b \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438 \u0431\u0435\u0437 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0430\u0439\u0442\u0438 \u0438 \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u0438\u0442\u044c \u0422\u0438\u043c\u0443\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0451 \u0432 \u0442\u043e\u043c \u0436\u0435 \u0447\u0430\u0442\u0438\u043a\u0435 \u043f\u043e C++ <a href=\"https:\/\/t.me\/ProCxx\">pro.cxx<\/a>, \u0430 \u043f\u043e\u043b\u044e\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 P2590 \u2014 <a href=\"https:\/\/wg21.link\/P2590\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<h2>16- \u0438 128-\u0431\u0438\u0442\u043d\u044b\u0435 float<\/h2>\n<p>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 C++ \u043e\u0431\u0437\u0430\u0432\u0451\u043b\u0441\u044f <code>std::float16_t<\/code>, <code>std::bfloat16_t<\/code>, <code>std::float128_t<\/code> \u0438 \u0430\u043b\u0438\u0430\u0441\u0430\u043c\u0438 \u0434\u043b\u044f \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439: <code>std::float32_t<\/code>, <code>std::float64_t<\/code>.<\/p>\n<p>  16-\u0431\u0438\u0442\u043d\u044b\u0435 float \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430\u043c\u0438 \u0438 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/catboost\/catboost\/blob\/master\/library\/cpp\/float16\/float16.h\">float16.h<\/a> \u0432 CatBoost. 128-\u0431\u0438\u0442\u043d\u044b\u0435 float \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0443\u0447\u043d\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438.<\/p>\n<p>  \u0412 <a href=\"https:\/\/wg21.link\/P1467\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P1467<\/a> \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043d\u043e\u0432\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c, \u0438 \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 <code>stdfloat.properties<\/code> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 \u043c\u0430\u043d\u0442\u0438\u0441\u0441 \u0438 \u044d\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442 \u0432 \u0431\u0438\u0442\u0430\u0445.<\/p>\n<h2>std::generator<\/h2>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 C++20 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438 \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b, \u0446\u0435\u043b\u0438\u043b\u0438\u0441\u044c \u0432 \u0442\u043e, \u0447\u0442\u043e \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u00ab\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432\u00bb. \u0422\u043e \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043d\u044f\u0442 \u0441\u0432\u043e\u0451 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. \u0412 C++23 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043a\u043b\u0430\u0441\u0441 <code>std::generator<\/code>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043b\u0435\u0433\u043a\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b:<\/p>\n<pre><code class=\"cpp\">std::generator&lt;int> fib() {     auto a = 0, b = 1;     while (true) {         co_yield std::exchange(a, std::exchange(b, a + b));     } }  int answer_to_the_universe() {     auto rng = fib() | std::views::drop(6) | std::views::take(3);     return std::ranges::fold_left(std::move(range), 0, std::plus{}); }<\/code><\/pre>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u044e\u0442\u0441\u044f \u0441 ranges. \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u043d\u0430 \u0444\u0435\u0432\u0440\u0430\u043b\u044c\u0441\u043a\u043e\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u0420\u041321, <code>std::generator<\/code> \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0435\u043d. \u041a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u0432\u0438\u0441\u044f\u0449\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0430\u043b\u0438\u0434\u0435\u043d \u0438 \u043d\u0435 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0441\u0442\u044f\u043c:<\/p>\n<pre><code class=\"cpp\">std::generator&lt;const std::string&amp;> greeter() {     std::size_t i = 0;     while (true) {         co_await promise::yield_value(\"hello \" + std::to_string(++i)); \/\/ \u0412\u0441\u0451 OK!     } } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u044b, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043e\u0431\u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 <a href=\"https:\/\/wg21.link\/P2502\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 P2502<\/a>.<\/p>\n<h2>\u041f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u043c\u0435\u043b\u043e\u0447\u0438<\/h2>\n<p>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0431\u0437\u0430\u0432\u0451\u043b\u0441\u044f \u043d\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434\u0430 <code>substr()<\/code> \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a: <code>std::string::substr() &amp;&amp;<\/code>. \u041a\u043e\u0434 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e\u2026<\/p>\n<pre><code class=\"cpp\">std::string StripSchema(std::string url) {     if (url.starts_with(\"http:\/\/\")) return std::move(url).substr(5);     if (url.starts_with(\"https:\/\/\")) return std::move(url).substr(6);     return url; } <\/code><\/pre>\n<p>  ..\u200b.\u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u043b\u043e\u043a\u0430\u0446\u0438\u0439. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u2014 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 <a href=\"https:\/\/wg21.link\/P2438\">P2438<\/a>.<\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f <a href=\"https:\/\/wg21.link\/P1169\">P1169<\/a> \u0432 \u044f\u0434\u0440\u0435 \u044f\u0437\u044b\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c <code>operator()<\/code> \u043a\u0430\u043a <code>static<\/code>. \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u0440\u0438\u0451\u043c \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f CPO \u0434\u043b\u044f ranges:<\/p>\n<pre><code class=\"cpp\">namespace detail {  struct begin_cpo {     void begin() = delete;      template &lt;typename T>         requires is_array_v&lt;remove_reference_t&lt;T>>             || member_begin&lt;T> || adl_begin&lt;T>     static auto operator()(T&amp;&amp; val); };  } \/\/ namespace detail  namespace ranges { inline constexpr detail::begin_cpo begin{};  \/\/ ranges::begin(container) } \/\/ namespace ranges <\/code><\/pre>\n<p>  \u0422\u0438\u043c\u0443\u0440 \u0414\u0443\u043c\u043b\u0435\u0440, \u043f\u043e\u043c\u0438\u043c\u043e <code>std::start_lifetime_as<\/code>, \u043e\u0442\u043b\u0438\u0447\u0438\u043b\u0441\u044f \u0435\u0449\u0451 \u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0445\u0438\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u0430 <code>[[assume(x > 0)]]<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0443 \u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u0447\u0438\u0441\u0435\u043b \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 <a href=\"https:\/\/wg21.link\/P1774\">P1774<\/a> \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u0435\u0439\u0441\u0430\u0445 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043f\u044f\u0442\u0438\u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439.<\/p>\n<h2>\u041f\u0440\u043e\u0447\u0435\u0435<\/h2>\n<p>  \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043f\u0430\u043b\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u0430\u0432\u043e\u043a, \u0431\u0430\u0433\u0444\u0438\u043a\u0441\u043e\u0432 \u0438 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439. \u0413\u0434\u0435-\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f move-\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u044b \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u043e\u0432 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439 (<a href=\"https:\/\/wg21.link\/P2266\">P2266<\/a>). \u041d\u0430 \u0440\u0430\u0434\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0447\u0430\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441 volatile \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f deprecated (<a href=\"https:\/\/wg21.link\/P2327\">P2327 \u0441 \u0431\u0430\u0433\u0444\u0438\u043a\u0441\u043e\u043c \u0432 C++20<\/a>). <code>operator&lt;=><\/code> \u0441\u0442\u0430\u043b \u043c\u0435\u043d\u044c\u0448\u0435 \u043b\u043e\u043c\u0430\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u043e\u0434 (<a href=\"https:\/\/wg21.link\/P2468\">P2468<\/a>), \u044e\u043d\u0438\u043a\u043e\u0434\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0438\u0445 \u0438\u043c\u0435\u043d\u0438 (<a href=\"https:\/\/wg21.link\/P2071\">P2071<\/a>), \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b \u043e\u0431\u044f\u0437\u0430\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u042e\u043d\u0438\u043a\u043e\u0434 (<a href=\"https:\/\/wg21.link\/P2295\">P2295<\/a>). \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0434\u043b\u044f ranges (<a href=\"https:\/\/wg21.link\/P2302\">ranges::contains P2302<\/a>, <a href=\"https:\/\/wg21.link\/P2446\">views::as_rvalue P2446<\/a>, <a href=\"https:\/\/wg21.link\/P2474\">views::repeat P2474<\/a>, <a href=\"https:\/\/wg21.link\/P1899\">views::stride P1899<\/a> \u0438 <a href=\"https:\/\/wg21.link\/P2322\">ranges::fold P2322<\/a>), <code>std::format_string<\/code> \u0441 \u0446\u0435\u043b\u044c\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f <code>std::format<\/code> (<a href=\"https:\/\/wg21.link\/P2508\">P2508<\/a>) \u0438 <code>#warning<\/code> (<a href=\"https:\/\/wg21.link\/P2437\">P2437<\/a>). ranges \u043d\u0430\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 move-only-\u0442\u0438\u043f\u0430\u043c\u0438 (<a href=\"https:\/\/wg21.link\/P2494\">P2494<\/a>). \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 <code>std::forward_like<\/code> \u0434\u043b\u044f \u0444\u043e\u0440\u0432\u0430\u0440\u0434\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0442\u0438\u043f\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 (<a href=\"https:\/\/wg21.link\/P2445\">P2445<\/a>).<\/p>\n<h2>\u0418\u0442\u043e\u0433\u0438<\/h2>\n<p>  \u0414\u043e\u043b\u0433\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u044b\u043c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c C++23 \u0441\u0442\u0430\u043d\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <code>std::stacktrace<\/code> \u043e\u0442 \u0420\u041321 \u2014 \u043d\u043e \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u0432\u043d\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0445 \u0444\u0438\u0447. \u0415\u0441\u0442\u044c \u043d\u043e\u0432\u0438\u043d\u043a\u0438 \u0438 \u0434\u043b\u044f embedded-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0438 \u0434\u043b\u044f \u043b\u044e\u0434\u0435\u0439, \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0445\u0438\u043c\u0438\u0435\u0439\/\u0444\u0438\u0437\u0438\u043a\u043e\u0439\/\u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u043e\u0439\/&#8230;, \u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u0438 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0444\u0438\u0447\u0438 C++23 \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0432\u0430\u0448\u0430 \u043f\u043e\u043c\u043e\u0449\u044c! \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 C++23 \u0438\u043b\u0438 \u0432\u0430\u043c \u0447\u0442\u043e-\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043c\u0435\u0448\u0430\u0435\u0442 \u0432 C++ \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/stdcpp.ru\/\">stdcpp.ru<\/a> \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u044f\u0437\u044b\u043a\u0430. \u0412\u0430\u0436\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043c\u044b \u0437\u0430\u043a\u0438\u043d\u0435\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u043a \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443, \u0438 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u0448\u0430\u043d\u0441\u044b, \u0447\u0442\u043e \u0438\u0445 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u0442.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0434\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u043e\u0432\u0438\u043d\u043a\u0438 C++ \u0438 \u0444\u0438\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0442-\u0432\u043e\u0442 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u043e \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 <code>std::stacktrace<\/code> \u0438\u0437 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0440\u043e <code>std::get&lt;1><\/code> \u0434\u043b\u044f \u0430\u0433\u0440\u0435\u0433\u0430\u0442\u043e\u0432).<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0432\u0441\u0442\u0440\u0435\u0447\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u044b 21 \u043f\u043e \u0438\u0442\u043e\u0433\u0430\u043c \u0437\u0430\u0441\u0435\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0438\u0442\u0435\u0442\u0430 \u043f\u0440\u043e\u0439\u0434\u0451\u0442 30 \u0438\u044e\u043b\u044f \u043d\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 C++ Zero Cost Conf. \u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/yandex.ru\/promo\/events\/yandex-cxxzerocostconf\/cxxzerocostconf_cc-2022?from=habr_cxx_meeting\">\u0437\u0434\u0435\u0441\u044c<\/a>: \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u044b \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0432\u043e\u043b\u043d\u0443\u044e\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043e\u043f\u0440\u043e\u0441.<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/yandex\/blog\/678760\/\"> https:\/\/habr.com\/ru\/company\/yandex\/blog\/678760\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/k3\/ay\/8j\/k3ay8ji3lxa1_bpqaxlkcfsp1da.jpeg\" width=\"70%\" data-src=\"https:\/\/habrastorage.org\/webt\/k3\/ay\/8j\/k3ay8ji3lxa1_bpqaxlkcfsp1da.jpeg\" data-blurred=\"true\"\/><\/div>\n<p>  \u041d\u0430 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0432\u0441\u0442\u0440\u0435\u0447\u0435 \u043a\u043e\u043c\u0438\u0442\u0435\u0442 C++ \u00ab\u043f\u0440\u043e\u0440\u0432\u0430\u043b\u043e\u00bb, \u0438 \u0432 \u0447\u0435\u0440\u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e C++23 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438:<\/p>\n<ul>\n<li><code>std::mdspan<\/code><\/li>\n<li><code>std::flat_map<\/code><\/li>\n<li><code>std::flat_set<\/code><\/li>\n<li>freestanding<\/li>\n<li><code>std::print(\"Hello {}\", \"world\")<\/code><\/li>\n<li>\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 ranges<\/li>\n<li><code>constexpr<\/code> \u0434\u043b\u044f <code>bitset<\/code>, <code>to_chars\/from_chars<\/code><\/li>\n<li><code>std::string::substr() &amp;&amp;<\/code><\/li>\n<li><code>import std;<\/code><\/li>\n<li><code>std::start_lifetime_as<\/code><\/li>\n<li><code>static operator()<\/code><\/li>\n<li><code>[[assume(x > 0)]];<\/code><\/li>\n<li>16- \u0438 128-\u0431\u0438\u0442\u043d\u044b\u0435 float<\/li>\n<li><code>std::generator<\/code><\/li>\n<li>\u0438 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-336194","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=336194"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336194\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=336194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=336194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=336194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}