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

(804b008d2601872164ec7447181e94550687122d)

#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_trivially_copyable_v<T> && std::is_trivially_default_constructible_v<T>)),
const T &,
T>

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

Definition at line 25 of file qqmlcpptypehelpers_p.h.