Template:cpp/thread/thread/detach

Separates the thread of execution from the object, allowing execution to continue independently. Any allocated resources will be freed once the thread exits.

After calling  no longer owns any thread.

Parameters
(none)

Return value
(none)

Postconditions
joinable is

Exceptions
std if or an error occurs.