Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlcpptypehelpers_p.h File Reference
#include <type_traits>
+ Include dependency graph for qqmlcpptypehelpers_p.h:

Go to the source code of this file.

Typedefs

template<typename T >
using passByConstRefOrValue = std::conditional_t<((sizeof(T) > 3 *sizeof(void *))||!std::is_trivial_v< T >), const T &, T >
 

Typedef Documentation

◆ passByConstRefOrValue

template<typename T >
using passByConstRefOrValue = std::conditional_t<((sizeof(T) > 3 * sizeof(void *)) || !std::is_trivial_v<T>), const T &, T>

Used by Qmltc to decide when value types should be passed by value or reference.

Definition at line 24 of file qqmlcpptypehelpers_p.h.