Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::policy_queue_traits< T, typename > Struct Template Reference

Extract policy types from a policy_queue. More...

#include <queue_traits.h>

Collaboration diagram for kcenon::thread::policy_queue_traits< T, typename >:
Collaboration graph

Static Public Attributes

static constexpr bool is_policy_queue = false
 

Detailed Description

template<typename T, typename = void>
struct kcenon::thread::policy_queue_traits< T, typename >

Extract policy types from a policy_queue.

This trait provides access to the template parameters of a policy_queue instantiation, enabling generic code to work with policy types.

Usage Example

static_assert(std::is_same_v<Traits::sync_policy_type, mutex_sync_policy>);
Policy-based queue template.
Extract policy types from a policy_queue.

Definition at line 195 of file queue_traits.h.

Member Data Documentation

◆ is_policy_queue

template<typename T , typename = void>
bool kcenon::thread::policy_queue_traits< T, typename >::is_policy_queue = false
staticconstexpr

Definition at line 196 of file queue_traits.h.


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