共用方式為


priority_queue::container_type

提供將符合的基礎容器的型別。

typedef Container container_type;

備註

這個型別是樣板參數 Container的同義字。 序列 STL 容器類別雙向佇列和預設分類向量符合做為基礎容器的 priority_queue 物件。 也會符合要求的使用者定義型別。

如需 Container,請參閱 priority_queue 類別 主題的 < 備註 > 一節。

範例

中的 priority_queue 參閱本範例說明如何宣告和使用 container_type

需求

標題: <佇列>

命名空間: std

請參閱

參考

priority_queue 類別

標準樣板程式庫