swift
Loading...
Searching...
No Matches
swift::misc::TParameter< T > Struct Template Reference

Trait to detect properties of function parameter types. More...

#include <typetraits.h>

Static Public Attributes

static constexpr ParameterPassBy passBy
 Whether the input parameter type T should be passed by value or by const reference.

Detailed Description

template<typename T>
struct swift::misc::TParameter< T >

Trait to detect properties of function parameter types.

Definition at line 45 of file typetraits.h.

Member Data Documentation

◆ passBy

template<typename T>
ParameterPassBy swift::misc::TParameter< T >::passBy
staticconstexpr
Initial value:
=
(sizeof(T) <= 16 && std::is_trivially_copy_constructible_v<T> && std::is_trivially_destructible_v<T>) ?
ParameterPassBy::Value :
ParameterPassBy::ConstRef
ParameterPassBy
Whether an input parameter type should be passed by value or by const reference.
Definition typetraits.h:36

Whether the input parameter type T should be passed by value or by const reference.

Definition at line 48 of file typetraits.h.


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