• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            獨立博客: 哲學與程序

            哲學與程序

            STL 容器List

            template <class T, template <class U>
            class Allocator = allocator> class list 
            {
            public:
            // typedefs:
                typedef iterator
                typedef const_iterator
                typedef Allocator
            <T>::pointer pointer
                typedef Allocator
            <T>::reference reference
                typedef Allocator
            <T>::const_reference const_reference
                typedef size_type
                typedef difference_type
                typedef T value_type
                typedef reverse_iterator
                typedef const_reverse_iterator;
            // allocation/deallocation:
                list()
                list(size_type n, 
            const T& value = T())
                template 
            <class InputIterator>
                list(InputIterator first, InputIterator last)
                list(
            const list<T, Allocator>& x)
                
            ~list()
                list
            <T, Allocator>& operator=(const list<T, Allocator>& x)
                
            void swap(list<T, Allocator>& x);
            // accessors:
                iterator begin()
                const_iterator begin() 
            const
                iterator end()
                const_iterator end() 
            const
                reverse_iterator rbegin()
                const_reverse_iterator rbegin();
                reverse_iterator rend();
                const_reverse_iterator rend();
                
            bool empty() const;
                size_type size() 
            const;
                size_type max_size() 
            const;
                reference front();
                const_reference front() 
            const;
                reference back();
                const_reference back() 
            const;
            // insert/erase:
                void push_front(const T& x);
                
            void push_back(const T& x);
                iterator insert(iterator position, 
            const T& x = T());
                
            void insert(iterator position, size_type n, const T& x);
                template 
            <class InputIterator>
                
            void insert(iterator position, InputIterator first, InputIterator last);
                
            void pop_front();
                
            void pop_back();
                
            void erase(iterator position);
                
            void erase(iterator first, iterator last);
            // special mutative operations on list:
                void splice(iterator position, list<T, Allocator>& x);
                
            void splice(iterator position, list<T, Allocator>& x, iterator i);
                
            void splice(iterator position, list<T, Allocator>& x,
                iterator first, iterator last);
                
            void remove(const T& value);
                template 
            <class Predicate> void remove_if(Predicate pred);
                
            void unique();
                template 
            <class BinaryPredicate> void unique(BinaryPredicate binary_pr
                
            void merge(list<T, Allocator>& x);
                template 
            <class Compare> void merge(list<T, Allocator>& x, Compare com
                
            void reverse();
                
            void sort();
                template 
            <class Compare> void sort(Compare comp);
            };

            posted on 2011-01-21 22:15 哲學與程序 閱讀(428) 評論(0)  編輯 收藏 引用 所屬分類: C & C++C++ STL

            導航

            公告

            歡迎訪問 http://zhexue.sinaapp.com

            常用鏈接

            隨筆分類(37)

            隨筆檔案(41)

            Algorithm

            最新隨筆

            搜索

            最新評論

            獨立博客: 哲學與程序
            久久97久久97精品免视看秋霞| 国产精品一区二区久久精品涩爱 | 久久国产精品无码HDAV| 亚洲国产精品无码久久久不卡| 久久99精品久久久久久动态图| 久久青青草原国产精品免费| 久久久久久国产精品美女| 久久亚洲精品无码VA大香大香| 久久久久人妻精品一区二区三区| 久久福利青草精品资源站| 久久影院午夜理论片无码| 国产Av激情久久无码天堂| 久久露脸国产精品| 久久精品夜夜夜夜夜久久| 久久亚洲2019中文字幕| 老色鬼久久亚洲AV综合| 日韩一区二区三区视频久久| 久久国产精品77777| 久久综合鬼色88久久精品综合自在自线噜噜| 久久精品国产精品亚洲精品| 一级做a爰片久久毛片人呢| 狠狠色婷婷久久综合频道日韩| 国产精品久久久天天影视香蕉 | 久久精品国产精品国产精品污| 思思久久99热免费精品6| 久久777国产线看观看精品| 久久久久人妻一区二区三区 | 免费精品久久天干天干| 亚洲精品高清国产一久久| 人妻精品久久久久中文字幕69| 中文字幕精品久久| 青春久久| 久久婷婷五月综合色99啪ak| 国産精品久久久久久久| 夜夜亚洲天天久久| 久久99国产精一区二区三区| 久久精品毛片免费观看| 久久夜色精品国产网站| 精品综合久久久久久888蜜芽| 亚洲午夜无码久久久久| 一本一道久久综合狠狠老|