C++ 23 to introduce module support

by Reima Budd on Jun 7, 2022 Software 505 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: 17179
Publishing
Articles: 79,710
Categories: 202
Online
Active Users: 1888
Members: 4
Guests: 1884
Bots: 19067
Visits last 24h (live): 8072
Visits last 24h (bots): 44443

Latest Comments

Bài viết cung cấp góc nhìn đáng chú ý về việc triển khai các chương trình phúc lợi xã hội của Chandrababu Naidu. Những chính sách hướng đến cải thiện đời sống người dân luôn là chủ đề đáng quan...
Bài viết mang đến góc nhìn đáng chú ý về việc triển khai các chương trình phúc lợi và tác động của chúng đối với cộng đồng. Mình nghĩ những chính sách hướng đến cải thiện đời sống người dân luôn...
What a blog. Lovely stuff.
on Oct 11, 2026 about The Latest Online Business
What a blog. Lovely stuff.
on Oct 11, 2026 about The Latest Online Business
Bài viết mang đến góc nhìn thú vị về các chương trình phúc lợi của Chandrababu Naidu và những tác động đối với đời sống người dân. Mình đánh giá cao những chính sách hướng đến cải thiện giáo dục,...
An unexpected evening spent with a Bhopal Escorts Service revealed new facets of desire. The atmosphere was relaxed, while the physical connection deepened with every passing moment. Soft...
We believe comfort is the gateway to real excitement. An Okhla Escort Service offers companions who prioritize your happiness. Our team creates space for fantasy to unfold and pleasure to...
Bài viết cung cấp góc nhìn khá thú vị về việc triển khai các chương trình phúc lợi, đặc biệt qua những thông tin cụ thể và cách tiếp cận thực tế. Nội dung giúp người đọc có thêm cơ sở để tìm hiểu...
Slope 2 represents a fascinating shift in how games keep us engaged. Instead of managing inventory or hiring staff, you're navigating a constantly shifting environment where the rules stay...
Walmart's decision to lock up African-American beauty products has sparked accusations of racial discrimination, which the company denies, attributing the practice to theft prevention....

Translate To: