C++ 23 to introduce module support

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.

To read this article in full, please click here

Social media & sharing icons powered by UltimatelySocial