ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::is_thread_like< T > Struct Template Reference

Type trait that identifies thread-like types. More...

#include <concepts.hpp>

Inheritance diagram for threadschedule::is_thread_like< T >:
[legend]
Collaboration diagram for threadschedule::is_thread_like< T >:
[legend]

Detailed Description

template<typename T>
struct threadschedule::is_thread_like< T >

Type trait that identifies thread-like types.

The primary template yields std::false_type. Explicit specializations are provided for std::thread and (when C++20 is available) std::jthread. Additional specializations for library types such as ThreadWrapper are defined in profiles.hpp.

Used by apply_profile() and other generic scheduling functions to accept any thread-like handle uniformly.

Template Parameters
TThe type to test.
Helper variable
is_thread_like_v<T> is a convenience inline constexpr bool.

Definition at line 144 of file concepts.hpp.


The documentation for this struct was generated from the following file: