c++ - Difference between is_same and mpl::same_as in boost -


मुझे boost :: is_same और boost :: के बीच का अंतर देख नहीं सकता एमपीएल :: same_as । क्या कोई शायद इन्हें बताता है और जहां केवल विशिष्ट प्रकार का उपयोग किया जा सकता है।

प्रभावी रूप से, कुछ भी नहीं। यदि आप वास्तव में mpl :: same_as को देखते हैं, इसमें is_same शामिल होता है और फिर इसे सीधे उपयोग करता है

ध्यान दें कि & lt; type_traits & gt; सी ++ 11 के रूप में मानक पुस्तकालय का हिस्सा है, और इसमें std :: is_same शामिल है (जो वास्तव में कार्य करता है को बढ़ावा देने में उपर्युक्त दो फ़ंक्शन की तरह)।


Comments

Popular posts from this blog

Python Equivalent for matlab cart2pol and pol2cart -

javascript - Render HTML after each iteration in loop -

sip - Call SipJs to Asterisk 12 -