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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -