1096
GB
What is 'std::move_only_function' vs std::function?
IN
'std::move_only_function' बनाम std::function क्या है?
A
move_only_function holds non-copyable callables
move_only_function गैर-प्रतिलिपि योग्य कॉलेबल रखता है
B
Same thing
एक ही बात
C
Slower
और धीमा
D
C++17 only
केवल सी++17
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
std::move_only_function (C++23) stores move-only callables unlike std::function which requires copyable.
व्याख्या (हिन्दी)
std::move_only_function (C++23) std::function के विपरीत मूव-ओनली कॉलेबल्स को स्टोर करता है जिसके लिए कॉपी करने योग्य की आवश्यकता होती है।