C++ 23 to introduce module support

by Reima Budd on Jun 7, 2022 Software 483 Views

C++ 23, the planned next version of the C++ programming language due to be finalized in 2023, is set to move forward with support for a standard library module and faster compilation.

The upgrade to the language is likely to include a standard library module, called std, and some support for coroutines, language designer Bjarne Stroustrup said. With the standard library module, “Hello World” becomes as follows:

import std:
int main()
{
   Std::cout<< "Hello, World!\n";
}

This will compile 10 times faster than the old version using #include <iostream>, Stroustrup said.

Also on InfoWorld: The rise of WebAssembly ]

Modules not only give improved compilation speed and better code hygiene, but also unify source organization of ordinary functions and templates, Stroustrup noted. The .h/.cpp distinction disappears and C++ source code is fundamentally simplified. “Eventually, modules will be the most significant improvement ever to the way we organize our code,” he said. 

C++ 23, which is being developed under the ISO (International Organization for Standardization), will have many minor improvements, some of which will not seem minor, Stroustrup said. He noted that it was never supposed to be a major upgrade of C++ the way C++ 11 and C++ 20 were. Rather, it was supposed to complete C++ 20 and hopefully ship a few significant features.

For more information about
check go to this popular resource.

Article source: https://article-realm.com/article/Computers/Software/23215-C-23-to-introduce-module-support.html

Comments

No comments have been left here yet. Be the first who will do it.
Safety

captchaPlease input letters you see on the image.
Click on image to redraw.

Reviews

Guest

Overall Rating:

Statistics

Members
Members: 16976
Publishing
Articles: 79,235
Categories: 202
Online
Active Users: 3906
Members: 7
Guests: 3899
Bots: 20062
Visits last 24h (live): 11495
Visits last 24h (bots): 61877

Latest Comments

Opting for a Vip Escort Delhi professional is a commitment to a premium, secure, and discreet lifestyle. Their unwavering focus on your desires, set within a private and comfortable...
I really enjoyed exploring Article Realm because it covers a variety of useful topics for people interested in building an online presence. This article especially highlights how SEO, keywords,...
on Sep 1, 2026 about The Latest Online Business
I like the focus on identifying specific gains from personal content marketing because it makes the strategy feel more purposeful than simply posting regularly and hoping something sticks. In my...
I also liked the point about low-traffic websites. AI may identify behavioral patterns faster, but when the sample size is too small, the test results can still be unreliable. A tool can speed up...
The article also made me think about something that's easy to overlook: backlinks should ultimately provide value to real users. If a link has no real context and exists only to increase the...
FNAF Game is one of those games that can make even a quiet room feel terrifying. I really enjoy how the game builds tension slowly instead of relying only on sudden scares. Watching the cameras,...
Deadshot IO is a really enjoyable FPS experience for players who like fast combat and competitive gameplay.
It is the easiest and fastest way to monetize a website. All you need to do is sign up and install the plugin, after which you can decide how many ads to display and how much revenue to generate....
It is the easiest and fastest way to monetize a website. All you need to do is sign up and install the plugin, after which you can decide how many ads to display and how much revenue to generate....
It is the easiest and fastest way to monetize a website. All you need to do is sign up and install the plugin, after which you can decide how many ads to display and how much revenue to generate....

Translate To: