我看到像* 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