c++ - What happens to the moved-from object after std::move() is called? -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 2 जवाब

मैंने पढ़ा है कि हमें चाहिए यह सुनिश्चित कर लें कि इसे स्थानांतरित करने से पहले ऑब्जेक्ट-इन ऑब्जेक्ट्स के कोई उपयोगकर्ता नहीं हैं मैं जानना चाहता हूं कि ऐसा क्यों है? क्या स्कीड :: चाल () को बुलाया जाता है? यदि नहीं, तो std :: move () के बाद स्थानांतरित-वस्तु से क्या होता है?

यह इस पर निर्भर करता है कि std :: move () के परिणाम का उपयोग कैसे किया जाता है चाल ही वस्तु को कुछ भी नहीं करता है।


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -