C++23 is the 2023 revision of the ISO C++ standard, developed by the ISO C++ Committee (WG21) as a free, open standard. It ranks #10 among trending tech tags at roughly 7.3% usage share. It's trending as compilers finish rolling out support for its quality-of-life features โ most notably std::print, deducing this, and multidimensional subscript operators โ that make modern C++ noticeably less error-prone to write.
C++23 introduces std::print โ a type-safe, Python-style formatted output function that replaces the verbose iostream chaining or unsafe printf calls.
#include <print>
#include <string>
int main() {
std::string name = "Ava";
int score = 97;
// std::print: type-safe, no manual format specifiers needed
std::println("{} scored {} points", name, score);
// deducing this (C++23) simplifies chained method definitions
return 0;
}
Use a recent GCC or Clang release with C++23 support enabled via the standard flag.
# compile with GCC, targeting the C++23 standard
g++ -std=c++23 main.cpp -o main
# run it
./main