0
我嘗試搜索std :: ignore的可能實現,但未能找到明確的答案。std :: ignore的可能實現
http://mail-archives.apache.org/mod_mbox/stdcxx-dev/200807.mbox/%[email protected]%3E引用與C++規範問題,並提供和說明執行情況
namespace std {
struct _Ignore
{
template <class _Type>
_Ignore& operator= (const _Type& value) { return *this; }
};
const _Ignore ignore = _Ignore();
} // namespace std
而且也有對問題進行進一步的討論。那麼,當前的實現是怎樣的呢?爲什麼?
什麼是不清楚,這是什麼問題? –
採取選擇的實施,並看看他們做了什麼。 – nwp