Skip to content

Glossary: C++ Beyond the Basics

jthread

Also written: std::jthread

`std::jthread` is a thread that joins itself when destroyed, so you can't forget to call `.join()`.

Where the book teaches it

Related terms

Threadstd::thread