zoukankan      html  css  js  c++  java
  • C++ set

    摘自C++ Reference
    Set定义:

    Sets are containers that store unique elements following a specific order.


    In a set, the value of an element also identifies it (the value is itself the key, of type T), and each value must be unique. The value of the elements in a set cannot be modified once in the container (the elements are always const), but they can be inserted or removed from the container.


    Internally, the elements in a set are always sorted following a specific strict weak ordering criterion indicated by its internal comparison object (of type Compare).


    set containers are generally slower than unordered_set containers to access individual elements by their key, but they allow the direct iteration on subsets based on their order.
    Sets are typically implemented as binary search trees.

    成员函数


    Iterators:


    Capacity:


    Modifiers:


    Observers:


    Operations:


    Allocator:

  • 相关阅读:
    Linux线程信号
    有理想的程序员必须知道的15件事
    Linux下 mplayer 使用手册
    Winxp下 gvim 编程环境搭建
    在WPF中弹出右键菜单时判断鼠标是否选中该项
    F#基本类型——Discriminated Unions
    在WPF的TreeView中实现右键选定
    WPF TreeView tools
    F#基本类型——Structure
    增强了一下DownloaderPlus的视频转换功能
  • 原文地址:https://www.cnblogs.com/patrolli/p/11224309.html
Copyright © 2011-2022 走看看