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

SFINAE trait that detects std::chrono::duration types. More...

#include <concepts.hpp>

Inheritance diagram for threadschedule::is_duration_impl< T, typename >:
[legend]
Collaboration diagram for threadschedule::is_duration_impl< T, typename >:
[legend]

Detailed Description

template<typename T, typename = void>
struct threadschedule::is_duration_impl< T, typename >

SFINAE trait that detects std::chrono::duration types.

Yields std::true_type when T exposes nested rep and period type aliases (the signature of any std::chrono::duration instantiation). The primary template is std::false_type; the partial specialization using std::void_t matches duration-like types.

Template Parameters
TThe type to test.

Definition at line 37 of file concepts.hpp.


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