• home

Tutorials

  • C++ Language: Learn this versatile and powerful programming language. Includes detailed explanations of pointers, functions, classes and templates, among others...
  • Reference

    Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples.
    Browse the C++ Reference

    Articles

    User-contributed articles, organized into different categories.
    You can contribute your own articles!
    Browse Articles

    Latest forum activity:

    Understand internals of std::expected   [Lounge]
     
    https://www.cppstories.com/2024/expected-cpp23-internals/
    [no replies]
    Daily bit(e) of C++ | Optimizing code to run 87x faster   [Lounge]
     
    https://simontoth.substack.com/p/daily-bite-of-c-optimizing-code-to
    [no replies]
    How to use a library of C++ 20 modules from another solution file?   [Windows Programming]
     
    Hi, I have a library of C++ 20 modules which I can use from projects in the same solution but not from projects in another solution. I have instructed the l...
    [3 replies] Last: that may work, but no, I mean pure windows folder management. You sho... (by jonnin)
    Made the mistake of trying to help out at SO again.   [Lounge]
     
    I guess I’ll never learn. https://stackoverflow.com/questions/78396197/is-there-a-cleaner-way-to-write-this-c-code Closed as “opinion-based”. [sup...
    [4 replies] Last: Then we can pull it all together in: main.c[/code][code] #include <... (by Duthomhas)
    C++ Questions (1,2,3,...,10,11,12,13)   [Beginners]
     
    1) Why does "&myChar " act differently in 2 different contexts? [code] char* pointer = &myChar[0]; //ALSO WORKS!!! [/code] Above, it actually return th...
    [244 replies] Last: The increasingly poor quality of search results drives me bonkers, but... (by Duthomhas)
    UB in STL   [Lounge]
     
    It bugs me that parts of the Ranges library allows UB, or doesn't have bounds checking. Given the recent criticism of C++ being an "unsafe language", I wonder w...
    [15 replies] Last: @Peter87 Thanks for your great post :+) I don't think I have ever us... (by TheIdeasMan)
    I just cannot understand this driving behavior...   [Lounge]
     
    People where I live (NJ) are weird, but I’ve had this happen in places like NM too. Today I was coming home in my big ol’ pickup truck, and the neighborhood st...
    [9 replies] Last: The other driver then came to a full and complete stop also. And just... (by George P)
    Mismatch overload problem   [General C++ Programming]
     
    Why does s have the value false? template<typename T> char test_have_range(decltype(&T::begin), decltype(&T::end)); template<typename T> short test_hav...
    [1 reply] : #ifndef DUTHOMHAS_IS_ITERABLE_HPP #define DUTHOMHAS_IS_ITERABLE_HPP ... (by Duthomhas)
    How to set up runtime environment for developing and testing Windows apps?   [Windows Programming]
     
    I would like to learn how to write my own credential provider but I don't want to roll out changes on my personal computer, in case I do something dumb and lo...
    [2 replies] Last: I also recommend using a Virtual Machine (VM), e.g. via Oracle Virtual... (by kigar64551)
    How to test if a type T has a begin<T> defined   [General C++ Programming]
     
    I have a SFINAE context where I have the following: struct have_sort { char c; }; struct have_range { char c[2]; }; struct have_none { char c[3]; }; ...
    [no replies]