Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
detail Namespace Reference

Functions

template<typename To , typename From , typename std::enable_if_t<!std::is_pointer_v< To >, int > = 0>
static auto getQQmlJSScopeFromSmartPtr (const From &p) -> From
 

Function Documentation

◆ getQQmlJSScopeFromSmartPtr()

template<typename To , typename From , typename std::enable_if_t<!std::is_pointer_v< To >, int > = 0>
static auto detail::getQQmlJSScopeFromSmartPtr ( const From & p) -> From
static

Utility method that returns proper value according to the type To. This version returns From.

Utility method that returns proper value according to the type To. This version returns From::get(), which is a raw pointer. The returned type is not necessarily equal to To (e.g. To might be QQmlJSScope * while returned is const QQmlJSScope *).

Definition at line 47 of file qqmljsutils_p.h.