collection_adapter::size_type (STL/CLR)
帶正負號的距離,兩個項目之間的型別。
typedef int size_type;
備註
型別描述是非負數的項目計數。
範例
// cliext_collection_adapter_size_type.cpp
// compile with: /clr
#include <cliext/adapter>
#include <cliext/deque>
typedef cliext::collection_adapter<
System::Collections::ICollection> Mycoll;
int main()
{
cliext::deque<wchar_t> d6x(6, L'x');
Mycoll c1(%d6x);
// display initial contents " x x x x x x"
for each (wchar_t elem in c1)
System::Console::Write(" {0}", elem);
System::Console::WriteLine();
Mycoll::size_type size = c1.size();
System::Console::WriteLine("size() = {0}", size);
return (0);
}
需求
標頭: < cliext/介面卡 >
Namespace: cliext