Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Boost C++ ライブラリの特定の部分では、次のようなものを読みます。
template<> struct add_reference<void> { typedef const nat &type; };
また
struct nat {int for_bool;};
nat は頭字語 (Not a Type) ですか? そうでない場合、その重要性は何ですか?
type_traits.hpp でこの nat を見ましたが、それはタイプではないようです。実際、これはtemplate<class T> struct add_reference<T&>for の特殊化のように機能しvoidます。これは void への参照を表しているようで、おそらく実装の完全性のために存在します。
template<class T> struct add_reference<T&>
void