File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The `<thread>` header provides the following functions:
1414Uniquely identifies the current thread of execution.
1515
1616``` cpp
17- thread::id this_thread:: get_id () noexcept ;
17+ thread::id get_id () noexcept ;
1818```
1919
2020### Return Value
@@ -44,7 +44,7 @@ Blocks the calling thread.
4444
4545``` cpp
4646template <class Rep , class Period>
47- void this_thread:: sleep_for(const chrono::duration<Rep, Period>& Rel_time);
47+ void sleep_for(const chrono::duration<Rep, Period>& Rel_time);
4848```
4949
5050### Parameters
@@ -62,7 +62,7 @@ Blocks the calling thread at least until the specified time.
6262
6363```cpp
6464template <class Clock, class Duration>
65- void this_thread:: sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
65+ void sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
6666```
6767
6868### Parameters
@@ -99,7 +99,7 @@ The function calls `Left.swap(Right)`.
9999Signals the operating system to run other threads, even if the current thread would ordinarily continue to run.
100100
101101```cpp
102- inline void this_thread:: yield() noexcept;
102+ inline void yield() noexcept;
103103```
104104
105105## See also
You can’t perform that action at this time.
0 commit comments