亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hashtable.h

?? linux下編程用 編譯軟件
?? H
?? 第 1 頁 / 共 3 頁
字號:
// Hashtable implementation used by containers -*- C++ -*-// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.//// This file is part of the GNU ISO C++ Library.  This library is free// software; you can redistribute it and/or modify it under the// terms of the GNU General Public License as published by the// Free Software Foundation; either version 2, or (at your option)// any later version.// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public License along// with this library; see the file COPYING.  If not, write to the Free// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,// USA.// As a special exception, you may use this file as part of a free software// library without restriction.  Specifically, if other files instantiate// templates or use macros or inline functions from this file, or you compile// this file and link it with other files to produce an executable, this// file does not by itself cause the resulting executable to be covered by// the GNU General Public License.  This exception does not however// invalidate any other reasons why the executable file might be covered by// the GNU General Public License./* * Copyright (c) 1996,1997 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation.  Silicon Graphics makes no * representations about the suitability of this software for any * purpose.  It is provided "as is" without express or implied warranty. * * * Copyright (c) 1994 * Hewlett-Packard Company * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation.  Hewlett-Packard Company makes no * representations about the suitability of this software for any * purpose.  It is provided "as is" without express or implied warranty. * *//** @file ext/hashtable.h *  This file is a GNU extension to the Standard C++ Library (possibly *  containing extensions from the HP/SGI STL subset). */#ifndef _HASHTABLE_H#define _HASHTABLE_H 1// Hashtable class, used to implement the hashed associative containers// hash_set, hash_map, hash_multiset, and hash_multimap.#include <vector>#include <iterator>#include <bits/stl_algo.h>#include <bits/stl_function.h>#include <ext/hash_fun.h>namespace __gnu_cxx{  using std::size_t;  using std::ptrdiff_t;  using std::forward_iterator_tag;  using std::input_iterator_tag;  using std::_Construct;  using std::_Destroy;  using std::distance;  using std::vector;  using std::pair;  using std::__iterator_category;  template <class _Val>    struct _Hashtable_node    {      _Hashtable_node* _M_next;      _Val _M_val;    };  template <class _Val, class _Key, class _HashFcn, class _ExtractKey, 	    class _EqualKey, class _Alloc = std::allocator<_Val> >    class hashtable;  template <class _Val, class _Key, class _HashFcn,	    class _ExtractKey, class _EqualKey, class _Alloc>    struct _Hashtable_iterator;  template <class _Val, class _Key, class _HashFcn,	    class _ExtractKey, class _EqualKey, class _Alloc>    struct _Hashtable_const_iterator;  template <class _Val, class _Key, class _HashFcn,	    class _ExtractKey, class _EqualKey, class _Alloc>    struct _Hashtable_iterator    {      typedef hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>        _Hashtable;      typedef _Hashtable_iterator<_Val, _Key, _HashFcn,				  _ExtractKey, _EqualKey, _Alloc>        iterator;      typedef _Hashtable_const_iterator<_Val, _Key, _HashFcn,					_ExtractKey, _EqualKey, _Alloc>        const_iterator;      typedef _Hashtable_node<_Val> _Node;      typedef forward_iterator_tag iterator_category;      typedef _Val value_type;      typedef ptrdiff_t difference_type;      typedef size_t size_type;      typedef _Val& reference;      typedef _Val* pointer;            _Node* _M_cur;      _Hashtable* _M_ht;      _Hashtable_iterator(_Node* __n, _Hashtable* __tab)      : _M_cur(__n), _M_ht(__tab) {}      _Hashtable_iterator() {}      reference      operator*() const      { return _M_cur->_M_val; }      pointer      operator->() const      { return &(operator*()); }      iterator&      operator++();      iterator      operator++(int);      bool      operator==(const iterator& __it) const      { return _M_cur == __it._M_cur; }      bool      operator!=(const iterator& __it) const      { return _M_cur != __it._M_cur; }    };  template <class _Val, class _Key, class _HashFcn,	    class _ExtractKey, class _EqualKey, class _Alloc>    struct _Hashtable_const_iterator    {      typedef hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>        _Hashtable;      typedef _Hashtable_iterator<_Val,_Key,_HashFcn,				  _ExtractKey,_EqualKey,_Alloc>        iterator;      typedef _Hashtable_const_iterator<_Val, _Key, _HashFcn,					_ExtractKey, _EqualKey, _Alloc>        const_iterator;      typedef _Hashtable_node<_Val> _Node;      typedef forward_iterator_tag iterator_category;      typedef _Val value_type;      typedef ptrdiff_t difference_type;      typedef size_t size_type;      typedef const _Val& reference;      typedef const _Val* pointer;            const _Node* _M_cur;      const _Hashtable* _M_ht;      _Hashtable_const_iterator(const _Node* __n, const _Hashtable* __tab)      : _M_cur(__n), _M_ht(__tab) {}      _Hashtable_const_iterator() {}      _Hashtable_const_iterator(const iterator& __it)      : _M_cur(__it._M_cur), _M_ht(__it._M_ht) {}      reference      operator*() const      { return _M_cur->_M_val; }      pointer      operator->() const      { return &(operator*()); }      const_iterator&      operator++();      const_iterator      operator++(int);      bool      operator==(const const_iterator& __it) const      { return _M_cur == __it._M_cur; }      bool      operator!=(const const_iterator& __it) const      { return _M_cur != __it._M_cur; }    };  // Note: assumes long is at least 32 bits.  enum { _S_num_primes = 28 };  static const unsigned long __stl_prime_list[_S_num_primes] =    {      53ul,         97ul,         193ul,       389ul,       769ul,      1543ul,       3079ul,       6151ul,      12289ul,     24593ul,      49157ul,      98317ul,      196613ul,    393241ul,    786433ul,      1572869ul,    3145739ul,    6291469ul,   12582917ul,  25165843ul,      50331653ul,   100663319ul,  201326611ul, 402653189ul, 805306457ul,      1610612741ul, 3221225473ul, 4294967291ul    };  inline unsigned long  __stl_next_prime(unsigned long __n)  {    const unsigned long* __first = __stl_prime_list;    const unsigned long* __last = __stl_prime_list + (int)_S_num_primes;    const unsigned long* pos = std::lower_bound(__first, __last, __n);    return pos == __last ? *(__last - 1) : *pos;  }  // Forward declaration of operator==.    template <class _Val, class _Key, class _HF, class _Ex,	    class _Eq, class _All>    class hashtable;  template <class _Val, class _Key, class _HF, class _Ex,	    class _Eq, class _All>    bool    operator==(const hashtable<_Val, _Key, _HF, _Ex, _Eq, _All>& __ht1,	       const hashtable<_Val, _Key, _HF, _Ex, _Eq, _All>& __ht2);  // Hashtables handle allocators a bit differently than other  // containers do.  If we're using standard-conforming allocators, then  // a hashtable unconditionally has a member variable to hold its  // allocator, even if it so happens that all instances of the  // allocator type are identical.  This is because, for hashtables,  // this extra storage is negligible.  Additionally, a base class  // wouldn't serve any other purposes; it wouldn't, for example,  // simplify the exception-handling code.    template <class _Val, class _Key, class _HashFcn,	    class _ExtractKey, class _EqualKey, class _Alloc>    class hashtable    {    public:      typedef _Key key_type;      typedef _Val value_type;      typedef _HashFcn hasher;      typedef _EqualKey key_equal;      typedef size_t            size_type;      typedef ptrdiff_t         difference_type;      typedef value_type*       pointer;      typedef const value_type* const_pointer;      typedef value_type&       reference;      typedef const value_type& const_reference;      hasher      hash_funct() const      { return _M_hash; }      key_equal      key_eq() const      { return _M_equals; }    private:      typedef _Hashtable_node<_Val> _Node;    public:      typedef typename _Alloc::template rebind<value_type>::other allocator_type;      allocator_type      get_allocator() const      { return _M_node_allocator; }    private:      typedef typename _Alloc::template rebind<_Node>::other _Node_Alloc;      typedef typename _Alloc::template rebind<_Node*>::other _Nodeptr_Alloc;      typedef vector<_Node*, _Nodeptr_Alloc> _Vector_type;      _Node_Alloc _M_node_allocator;      _Node*      _M_get_node()      { return _M_node_allocator.allocate(1); }      void      _M_put_node(_Node* __p)      { _M_node_allocator.deallocate(__p, 1); }    private:      hasher                _M_hash;      key_equal             _M_equals;      _ExtractKey           _M_get_key;      _Vector_type          _M_buckets;      size_type             _M_num_elements;          public:      typedef _Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey,				  _EqualKey, _Alloc>        iterator;      typedef _Hashtable_const_iterator<_Val, _Key, _HashFcn, _ExtractKey,					_EqualKey, _Alloc>        const_iterator;      friend struct      _Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>;      friend struct      _Hashtable_const_iterator<_Val, _Key, _HashFcn, _ExtractKey,				_EqualKey, _Alloc>;    public:      hashtable(size_type __n, const _HashFcn& __hf,		const _EqualKey& __eql, const _ExtractKey& __ext,		const allocator_type& __a = allocator_type())      : _M_node_allocator(__a), _M_hash(__hf), _M_equals(__eql),	_M_get_key(__ext), _M_buckets(__a), _M_num_elements(0)      { _M_initialize_buckets(__n); }      hashtable(size_type __n, const _HashFcn& __hf,		const _EqualKey& __eql,		const allocator_type& __a = allocator_type())      : _M_node_allocator(__a), _M_hash(__hf), _M_equals(__eql),	_M_get_key(_ExtractKey()), _M_buckets(__a), _M_num_elements(0)      { _M_initialize_buckets(__n); }      hashtable(const hashtable& __ht)      : _M_node_allocator(__ht.get_allocator()), _M_hash(__ht._M_hash),      _M_equals(__ht._M_equals), _M_get_key(__ht._M_get_key),      _M_buckets(__ht.get_allocator()), _M_num_elements(0)      { _M_copy_from(__ht); }      hashtable&      operator= (const hashtable& __ht)      {	if (&__ht != this)	  {	    clear();	    _M_hash = __ht._M_hash;	    _M_equals = __ht._M_equals;	    _M_get_key = __ht._M_get_key;	    _M_copy_from(__ht);	  }	return *this;      }      ~hashtable()      { clear(); }      size_type      size() const      { return _M_num_elements; }      size_type      max_size() const      { return size_type(-1); }      bool      empty() const      { return size() == 0; }      void      swap(hashtable& __ht)      {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久草这里只有精品视频| 国产自产高清不卡| 国产精品成人免费| 久久精品欧美日韩精品| 精品国产伦一区二区三区免费| 91精品国产综合久久久久| 欧美日韩一区二区在线视频| 在线观看免费亚洲| 欧美美女喷水视频| 日韩一区二区中文字幕| 2020国产精品自拍| 久久精品视频一区二区| 国产精品久久久久一区二区三区 | 91婷婷韩国欧美一区二区| 不卡一区二区中文字幕| 99麻豆久久久国产精品免费优播| 成人一区二区视频| 91污片在线观看| 欧美日免费三级在线| 欧美一区二区三区啪啪| 久久综合久久综合九色| 久久九九久精品国产免费直播| 国产成人免费视频网站高清观看视频 | 中文字幕在线一区| 国产精品久久久久久久久久免费看| 国产精品国产自产拍在线| 亚洲精品视频一区二区| 毛片av中文字幕一区二区| 黄色日韩网站视频| 色婷婷综合中文久久一本| 91精品国产一区二区人妖| 久久久久久久综合| 亚洲香肠在线观看| 国产乱人伦偷精品视频不卡| av成人免费在线观看| 91精品国产一区二区三区蜜臀 | 亚洲视频一二三| 天天综合日日夜夜精品| 国产成人精品一区二| 欧美影院一区二区三区| 久久久久久9999| 亚洲一区视频在线| 成人丝袜18视频在线观看| 欧美精品九九99久久| 国产精品色一区二区三区| 日韩电影免费一区| 在线精品视频免费播放| 久久婷婷成人综合色| 日韩国产欧美三级| 在线视频一区二区三区| 中文字幕av在线一区二区三区| 午夜精品123| 色诱视频网站一区| 欧美激情在线观看视频免费| 久久精品国产免费| 欧美日韩国产一二三| 成人欧美一区二区三区小说| 精品一区二区三区的国产在线播放| 欧美在线观看一区| 日韩美女精品在线| 成人国产精品免费观看视频| 亚洲精品一区二区三区99| 日韩av一区二区三区| 欧美亚洲动漫另类| 亚洲夂夂婷婷色拍ww47| 91久久一区二区| 国产精品网站在线| 成人国产精品免费网站| 国产免费久久精品| 国产成人av一区二区三区在线| 欧美成人aa大片| 免费观看日韩电影| 欧美一级片免费看| 麻豆成人久久精品二区三区小说| 91精品午夜视频| 日韩国产精品久久久| 欧美一级高清大全免费观看| 日韩高清不卡在线| 日韩欧美中文字幕公布| 精品影院一区二区久久久| 26uuu亚洲综合色欧美| 久久精品久久综合| 久久久精品影视| 国产.欧美.日韩| 亚洲人成网站精品片在线观看| 99精品热视频| 亚洲国产成人91porn| 日韩一卡二卡三卡国产欧美| 九九在线精品视频| 欧美精品一区二区蜜臀亚洲| 丰满少妇久久久久久久| 亚洲欧美偷拍卡通变态| 欧美日韩精品二区第二页| 日本午夜精品视频在线观看 | jizzjizzjizz欧美| 亚洲最快最全在线视频| 欧美精品vⅰdeose4hd| 黄色日韩三级电影| 亚洲四区在线观看| 欧美一区二区三区精品| 国产成人精品一区二| 亚洲尤物在线视频观看| 日韩精品一区在线| www.欧美.com| 日韩精品福利网| 久久精品一区八戒影视| 色噜噜狠狠一区二区三区果冻| 日本sm残虐另类| 国产精品视频在线看| 6080日韩午夜伦伦午夜伦| 国产成人在线看| 亚洲午夜久久久久| 久久精品人人做人人综合| 欧美亚洲国产一区二区三区| 精品一区二区在线免费观看| 亚洲人xxxx| 久久综合九色欧美综合狠狠| 色丁香久综合在线久综合在线观看| 日本不卡高清视频| 亚洲最新视频在线观看| 久久久91精品国产一区二区三区| 欧洲精品一区二区| 国产成人午夜视频| 婷婷国产v国产偷v亚洲高清| 国产精品伦理在线| 精品国产区一区| 欧美群妇大交群的观看方式 | 亚洲国产wwwccc36天堂| 欧美国产国产综合| 精品人在线二区三区| 在线精品亚洲一区二区不卡| 国产乱码精品1区2区3区| 人人精品人人爱| 亚洲激情图片qvod| 欧美国产日韩a欧美在线观看| 日韩欧美国产电影| 欧美日韩精品一区二区三区四区| av中文字幕不卡| 国产精品88888| 激情综合亚洲精品| 久久99精品视频| 免费美女久久99| 日韩av网站在线观看| 亚洲成a人v欧美综合天堂| 亚洲制服欧美中文字幕中文字幕| 国产精品久久久久久久岛一牛影视| 精品国产免费人成电影在线观看四季 | 国产视频911| 久久免费精品国产久精品久久久久| 91麻豆精品国产91久久久久久| 欧美亚洲自拍偷拍| 欧美视频精品在线| 欧美日韩一级视频| 91精品国产综合久久久久久久久久 | 欧美一级一级性生活免费录像| 欧洲一区二区av| 欧美午夜精品电影| 欧美日韩一区三区四区| 91精品国产综合久久婷婷香蕉| 欧美熟乱第一页| 宅男在线国产精品| 精品少妇一区二区三区日产乱码 | 亚洲精品国产成人久久av盗摄 | 欧美日韩五月天| 6080午夜不卡| 2024国产精品| 国产精品福利一区| 一区二区不卡在线播放 | 日韩精彩视频在线观看| 免费在线观看一区二区三区| 国精产品一区一区三区mba桃花| 国产乱子轮精品视频| 成人黄色电影在线 | 国产精品系列在线| 一区二区三区波多野结衣在线观看| 亚洲国产综合人成综合网站| 日韩高清在线电影| 福利一区在线观看| 欧美三级乱人伦电影| 欧美不卡一区二区| 最新日韩av在线| 日韩av一区二区三区| 国产成人精品影视| 欧美私模裸体表演在线观看| 日韩一区二区三| 国产精品久久久久四虎| 亚洲成人7777| 粉嫩蜜臀av国产精品网站| 欧美日韩中文一区| 国产免费成人在线视频| 亚洲r级在线视频| 成人中文字幕在线| 666欧美在线视频| 亚洲欧美自拍偷拍| 紧缚捆绑精品一区二区| 欧美亚洲国产bt| 国产精品久久午夜夜伦鲁鲁| 蜜桃久久久久久久| 色哟哟国产精品免费观看| 久久精品视频一区二区三区|