我看到像* unspecified *在C++ typedef语句中指的是什么?
的typedef声明*不明* VALUE_TYPE;
typedef * unspecified * reference;
在声明Boost :: multi_array类。
namespace boost {
template <typename ValueType,
std::size_t NumDims,
typename Allocator = std::allocator<ValueType> >
class multi_array {
public:
// types:
typedef ValueType element;
typedef *unspecified* value_type;
typedef *unspecified* reference;
typedef *unspecified* const_reference;
typedef *unspecified* difference_type;
typedef *unspecified* iterator;
typedef *unspecified* const_iterator;
typedef *unspecified* reverse_iterator;
typedef *unspecified* const_reverse_iterator;
typedef multi_array_types::size_type size_type;
typedef multi_array_types::index index;
typedef multi_array_types::index_gen index_gen;
typedef multi_array_types::index_range index_range;
typedef multi_array_types::extent_gen extent_gen;
typedef multi_array_types::extent_range extent_range;
typedef *unspecified* storage_order_type;
* * * * * * * * * * * * * * * * * * * * * * * * * * * *这是一个C++ 11标准吗?
这是从文档复制而不是编译头文件?这对我来说看起来并不像是有效的C++,但看起来像是试图告诉你typedef存在的文档,而不告诉你将来可能会改变的基础类型的真实名称。 – Stewart 2011-04-07 12:14:49
你从哪里看到它的? – 2011-04-07 12:16:10
只是要模仿斯图尔特的评论:如果你打开multy_array.hpp,你不会找到任何“*未指定*”的标记。有参考依赖于teplate参数的基类。 – Eugene 2011-04-07 12:33:26