Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
C++

C++

Zero-cost abstractions and full control over memory.

Paradigm
Multi-paradigm, OOP, generic
Typing
Static, strong-ish
Memory
Manual / RAII, no GC
Runs
Native machine code (AOT)
Concurrency
Threads, atomics, coroutines (C++20)

C++ overview

Zero-cost abstractions and full control over memory. Every language page follows the same structure, so you can jump between languages and compare.

This guide covers modern C++. Its source repository is named training-algorithms-c, but the code in it is C++.

Hello world

hello.cpp
#include <iostream>

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

Source repository

The SOLID single-responsibility example in this guide comes from gelnomo/training-algorithms-c (SOLID/SingleResponsiblityPrinciple.cpp). The other sections were written for nebx Learn.

Saved in this browser only. Part of Clean code foundations (0/5).