qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::actor_factory_param< T > Struct Template Reference

Utility struct for processing actor factory constructor arguments. More...

#include <Actor.h>

Public Types

using no_ref = std::remove_reference_t<T>
 Type with references removed.
using type
 The resulting type after transformation.

Static Public Attributes

static constexpr bool is_ref_wrapper
 Whether the type is a reference wrapper.

Detailed Description

template<typename T>
struct qb::actor_factory_param< T >

Utility struct for processing actor factory constructor arguments.

This struct handles parameter type transformations for actor factory arguments. It specializes the handling of reference wrappers, string literals, and other types to ensure they are properly stored and forwarded to actor constructors.

Template Parameters
TThe original parameter type to process

Member Typedef Documentation

◆ type

template<typename T>
using qb::actor_factory_param< T >::type
Initial value:
std::conditional_t<
std::conditional_t<
std::is_array_v<T> && std::is_same_v<std::remove_extent_t<T>, const char>,
std::string,
std::decay_t<T>
>
>
std::remove_reference_t< T > no_ref
Type with references removed.
Definition Actor.h:957
static constexpr bool is_ref_wrapper
Whether the type is a reference wrapper.
Definition Actor.h:960

The resulting type after transformation.

Member Data Documentation

◆ is_ref_wrapper

template<typename T>
bool qb::actor_factory_param< T >::is_ref_wrapper
staticconstexpr
Initial value:

Whether the type is a reference wrapper.