C++ 23 to introduce module support

by Reima Budd on Jun 7, 2022 Software 521 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: 17257
Publishing
Articles: 79,948
Categories: 202
Online
Active Users: 1455
Members: 4
Guests: 1451
Bots: 24592
Visits last 24h (live): 4293
Visits last 24h (bots): 82157

Latest Comments

I really like the new design. It is a lot easier to use and visually attractive.  Sbo28      
I really like the new design. It is a lot easier to use and visually attractive.  Untung28    
Watch High Quality Anime Online on Aniwatch With English Subbed And Dubbed.
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In...
You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming.  amanahtoto    
Certain nights demand complete attention and the kind of chemistry that builds slowly without any forced effort. Using Female Escort Service in Delhi often results in sessions that feel...
I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!   amanahtoto...
I agree that building a prototype before pursuing a patent is a practical step. I once worked on a small app idea and discovered through early testing that users wanted something slightly...
on Nov 2, 2026 about How to Start an Invention Idea
Admiring the time and effort you put into your blog and detailed information you offer!  amanahtoto alterantif    
I can suggest essentially not too bad and even dependable tips, accordingly see it:  amanahtoto    

Translate To: