Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlcpptypehelpers_p.h File Reference

(9ba7a4cf7e161992209960c32c9fccb445dceec2)

#include <type_traits>
Include dependency graph for qqmlcpptypehelpers_p.h:

Go to the source code of this file.

Typedefs

template<typename T>
using passByConstRefOrValue

Typedef Documentation

◆ passByConstRefOrValue

template<typename T>
using passByConstRefOrValue
Initial value:
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.