有没有人列出标准<type_traits>(GCC-4.6.1)和Boost自己的所有类型特征的列表<boost/type_traits.hpp>?
1344 次
1 回答
3
完整的特征列表可在线获取:
- Boost 文档列出了
<boost/type_traits.hpp>; - C++0x 草案列出了
<type_traits>.
但是,GCC 的实现还没有完成。缺少 GCC 4.6:
std::underlying_type特质。这个将在 GCC 4.7 上。std::is_trivially_X系列性状。相反,它有std::has_trivial_default_constructor和类似的名字,似乎来自早期的草案。缺少关于移动构造函数的那个。std::is_nothrow_X系列性状。这些也使用较旧的名称,例如std::has_nothrow_default_constructor. 关于移动构造函数的那个也不见了。std::aligned_union特质。这个可以很容易地实现,std::aligned_storage目前支持。
于 2011-09-30T17:30:08.797 回答