swift
Static Public Attributes | List of all members
swift::misc::TParameter< T > Struct Template Reference

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

Static Public Attributes

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

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 >
constexpr 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

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: