共用方式為


collection_adapter::base (STL/CLR)

將指定的換行的 BCL 介面。

    Coll^ base();

備註

成員函式會傳回儲存的 BCL 介面控制代碼。

範例

// cliext_collection_adapter_base.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(); 
 
    System::Console::WriteLine("base() same = {0}", c1.base() == %c1); 
    return (0); 
    } 
 
  

需求

標頭: < cliext/介面卡 >

Namespace: cliext

請參閱

參考

collection_adapter (STL/CLR)