System::Ref विधि

System::Ref(const std::reference_wrapper<T>&) method

Ref(std::ref(DynamicWeakPtr)) के काम करने को सुनिश्चित करने वाला रैपर।

template<typename T> decltype(Ref(std::declval<T &>())) System::Ref(const std::reference_wrapper<T> &wrapper)
पैरामीटरविवरण
Tसंदर्भित प्रकार।
पैरामीटरप्रकारविवरण
रैपरconst std::reference_wrapper<T>&std रैपर को अनरैप करने के लिए।

ReturnValue

Reference प्रकार System:: में परिभाषित है, न कि std में।

संबंधित देखें

System::Ref(DynamicWeakPtr<T, trunkMode, weakLeafs…>&) method

DynamicWeakPtr ऑब्जेक्ट का संदर्भ बनाता है। जब फ़ंक्शन तर्कों को संदर्भ द्वारा पास किया जाता है तो अनुवादक द्वारा उपयोग किया जाता है।

template<typename T,SmartPtrMode,unsigned int ...> DynamicWeakPtr<T, trunkMode, weakLeafs...>::Reference System::Ref(DynamicWeakPtr<T, trunkMode, weakLeafs...> &ptr)
पैरामीटरविवरण
Tपॉइंटी प्रकार।
trunkModeस्मार्ट पॉइंटर स्वयं का मोड।
weakLeafsटेम्पलेट तर्कों के इंडेक्स जिनके लिए SetTemplateWeakPtr विधि को कॉल करना आवश्यक है।
पैरामीटरप्रकारविवरण
ptrDynamicWeakPtr<T, trunkMode, weakLeafs…>&संदर्भ बनाने के लिए स्मार्ट पॉइंटर।

ReturnValue

स्मार्ट पॉइंटर संदर्भ।

संबंधित देखें

System::Ref(T&) method

ऑब्जेक्ट्स के संदर्भ प्राप्त करने के लिए सहायक फ़ंक्शन। यह सुनिश्चित करने के लिए उपयोग किया जाता है कि System::DynamicWeakPtr असाइनमेंट के बाद संदर्भित ऑब्जेक्ट को अपडेट करे।

template<typename T> T & System::Ref(T &value)
पैरामीटरविवरण
Tसंदर्भ बनाने के लिए प्रकार।
पैरामीटरप्रकारविवरण
मानT&संदर्भ बनाने के लिए मान।

ReturnValue

इस फ़ंक्शन को पास किए गए मान का संदर्भ।

संबंधित देखें