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

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

?? stl_map.h

?? 粗慥集成算法集合 ,并有詳細的文檔資料和測試數據處
?? H
字號:
/*
 *
 * Copyright (c) 1994
 * Hewlett-Packard Company
 *
 * Copyright (c) 1996,1997
 * Silicon Graphics Computer Systems, Inc.
 *
 * Copyright (c) 1997
 * Moscow Center for SPARC Technology
 *
 * Copyright (c) 1999 
 * Boris Fomitchev
 *
 * This material is provided "as is", with absolutely no warranty expressed
 * or implied. Any use is at your own risk.
 *
 * Permission to use or copy this software for any purpose is hereby granted 
 * without fee, provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 *
 */

/* NOTE: This is an internal header file, included by other STL headers.
 *   You should not attempt to use it directly.
 */

#ifndef __SGI_STL_INTERNAL_MAP_H
#define __SGI_STL_INTERNAL_MAP_H

__STL_BEGIN_NAMESPACE

#define map __WORKAROUND_RENAME(map)

#if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
#pragma set woff 1174
#pragma set woff 1375
#endif

template <class _Key, class _Tp, __DFL_TMPL_PARAM(_Compare, less<_Key> ), 
          __STL_DEFAULT_PAIR_ALLOCATOR_SELECT(const _Key, _Tp) >
class map {
public:

// typedefs:

  typedef _Key                  key_type;
  typedef _Tp                   data_type;
  typedef _Tp                   mapped_type;
  typedef pair<const _Key, _Tp> value_type;
  typedef _Compare              key_compare;
    
  class value_compare
    : public binary_function<value_type, value_type, bool> {
  friend class map<_Key,_Tp,_Compare,_Alloc>;
  protected :
    _Compare _M_comp;
    value_compare(_Compare __c) : _M_comp(__c) {}
  public:
    bool operator()(const value_type& __x, const value_type& __y) const {
      return _M_comp(__x.first, __y.first);
    }
  };

private:
# ifdef __STL_MULTI_CONST_TEMPLATE_ARG_BUG
  typedef _Rb_tree<key_type, value_type, 
                   _Select1st_hint<value_type, _Key>, key_compare, _Alloc> _Rep_type;
# else
  typedef _Rb_tree<key_type, value_type, 
                   _Select1st<value_type>, key_compare, _Alloc> _Rep_type;
# endif
  _Rep_type _M_t;  // red-black tree representing map
public:
  typedef typename _Rep_type::pointer pointer;
  typedef typename _Rep_type::const_pointer const_pointer;
  typedef typename _Rep_type::reference reference;
  typedef typename _Rep_type::const_reference const_reference;
  typedef typename _Rep_type::iterator iterator;
  typedef typename _Rep_type::const_iterator const_iterator;
  typedef typename _Rep_type::reverse_iterator reverse_iterator;
  typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator;
  typedef typename _Rep_type::size_type size_type;
  typedef typename _Rep_type::difference_type difference_type;
  typedef typename _Rep_type::allocator_type allocator_type;

  // allocation/deallocation

  map() : _M_t(_Compare(), allocator_type()) {}
  explicit map(const _Compare& __comp,
               const allocator_type& __a = __STL_ALLOC_INSTANCE(allocator_type))
    : _M_t(__comp, __a) {}

#ifdef __STL_MEMBER_TEMPLATES
  template <class _InputIterator>
  map(_InputIterator __first, _InputIterator __last)
    : _M_t(_Compare(), allocator_type())
    { _M_t.insert_unique(__first, __last); }

  template <class _InputIterator>
  map(_InputIterator __first, _InputIterator __last, const _Compare& __comp,
      const allocator_type& __a = __STL_ALLOC_INSTANCE(allocator_type))
    : _M_t(__comp, __a) { _M_t.insert_unique(__first, __last); }
#else
  map(const value_type* __first, const value_type* __last)
    : _M_t(_Compare(), allocator_type())
    { _M_t.insert_unique(__first, __last); }

  map(const value_type* __first,
      const value_type* __last, const _Compare& __comp,
      const allocator_type& __a = __STL_ALLOC_INSTANCE(allocator_type))
    : _M_t(__comp, __a) { _M_t.insert_unique(__first, __last); }

  map(const_iterator __first, const_iterator __last)
    : _M_t(_Compare(), allocator_type()) 
    { _M_t.insert_unique(__first, __last); }

  map(const_iterator __first, const_iterator __last, const _Compare& __comp,
      const allocator_type& __a = __STL_ALLOC_INSTANCE(allocator_type))
    : _M_t(__comp, __a) { _M_t.insert_unique(__first, __last); }

#endif /* __STL_MEMBER_TEMPLATES */

  map(const map<_Key,_Tp,_Compare,_Alloc>& __x) : _M_t(__x._M_t) {}
  map<_Key,_Tp,_Compare,_Alloc>&
  operator=(const map<_Key, _Tp, _Compare, _Alloc>& __x)
  {
    _M_t = __x._M_t;
    return *this; 
  }

  // accessors:

  key_compare key_comp() const { return _M_t.key_comp(); }
  value_compare value_comp() const { return value_compare(_M_t.key_comp()); }
  allocator_type get_allocator() const { return _M_t.get_allocator(); }

  iterator begin() { return _M_t.begin(); }
  const_iterator begin() const { return _M_t.begin(); }
  iterator end() { return _M_t.end(); }
  const_iterator end() const { return _M_t.end(); }
  reverse_iterator rbegin() { return _M_t.rbegin(); }
  const_reverse_iterator rbegin() const { return _M_t.rbegin(); }
  reverse_iterator rend() { return _M_t.rend(); }
  const_reverse_iterator rend() const { return _M_t.rend(); }
  bool empty() const { return _M_t.empty(); }
  size_type size() const { return _M_t.size(); }
  size_type max_size() const { return _M_t.max_size(); }
  _Tp& operator[](const key_type& __k) {
    iterator __i = lower_bound(__k);
    // __i->first is greater than or equivalent to __k.
    if (__i == end() || key_comp()(__k, (*__i).first))
      __i = insert(__i, value_type(__k, _Tp()));
    return (*__i).second;
  }
  void swap(map<_Key,_Tp,_Compare,_Alloc>& __x) { _M_t.swap(__x._M_t); }

  // insert/erase

  pair<iterator,bool> insert(const value_type& __x) 
    { return _M_t.insert_unique(__x); }
  iterator insert(iterator position, const value_type& __x)
    { return _M_t.insert_unique(position, __x); }
#ifdef __STL_MEMBER_TEMPLATES
  template <class _InputIterator>
  void insert(_InputIterator __first, _InputIterator __last) {
    _M_t.insert_unique(__first, __last);
  }
#else
  void insert(const value_type* __first, const value_type* __last) {
    _M_t.insert_unique(__first, __last);
  }
  void insert(const_iterator __first, const_iterator __last) {
    _M_t.insert_unique(__first, __last);
  }
#endif /* __STL_MEMBER_TEMPLATES */

  void erase(iterator __position) { _M_t.erase(__position); }
  size_type erase(const key_type& __x) { return _M_t.erase(__x); }
  void erase(iterator __first, iterator __last)
    { _M_t.erase(__first, __last); }
  void clear() { _M_t.clear(); }

  // map operations:

  iterator find(const key_type& __x) { return _M_t.find(__x); }
  const_iterator find(const key_type& __x) const { return _M_t.find(__x); }
  size_type count(const key_type& __x) const { return _M_t.count(__x); }
  iterator lower_bound(const key_type& __x) {return _M_t.lower_bound(__x); }
  const_iterator lower_bound(const key_type& __x) const {
    return _M_t.lower_bound(__x); 
  }
  iterator upper_bound(const key_type& __x) {return _M_t.upper_bound(__x); }
  const_iterator upper_bound(const key_type& __x) const {
    return _M_t.upper_bound(__x); 
  }
  
  pair<iterator,iterator> equal_range(const key_type& __x) {
    return _M_t.equal_range(__x);
  }
  pair<const_iterator,const_iterator> equal_range(const key_type& __x) const {
    return _M_t.equal_range(__x);
  }
};

template <class _Key, class _Tp, class _Compare, class _Alloc>
inline bool operator==(const map<_Key,_Tp,_Compare,_Alloc>& __x, 
                       const map<_Key,_Tp,_Compare,_Alloc>& __y) {
  return __x.size() == __y.size() &&
         equal(__x.begin(), __x.end(), __y.begin());
}

template <class _Key, class _Tp, class _Compare, class _Alloc>
inline bool operator<(const map<_Key,_Tp,_Compare,_Alloc>& __x, 
                      const map<_Key,_Tp,_Compare,_Alloc>& __y) {
  return lexicographical_compare(__x.begin(), __x.end(), 
                                 __y.begin(), __y.end());
}

#ifdef __STL_FUNCTION_TMPL_PARTIAL_ORDER

template <class _Key, class _Tp, class _Compare, class _Alloc>
inline void swap(map<_Key,_Tp,_Compare,_Alloc>& __x, 
                 map<_Key,_Tp,_Compare,_Alloc>& __y) {
  __x.swap(__y);
}

#endif /* __STL_FUNCTION_TMPL_PARTIAL_ORDER */

// do a cleanup
# undef map
# define __map__  __FULL_NAME(map)

// provide a way to access full funclionality 
# ifdef __STL_USE_WRAPPER_FOR_ALLOC_PARAM

#  if defined (__STL_MINIMUM_DEFAULT_TEMPLATE_PARAMS)
#   define __MAP_TEMPLATE_HEADER  template <class _Key, class _Tp>
#   define __MAP_ARGUMENTS        _Key, _Tp
#   define _Compare less<_Key>
#  else
#   define __MAP_TEMPLATE_HEADER  template <class _Key, class _Tp, class _Compare >
#   define __MAP_ARGUMENTS        _Key, _Tp, _Compare
#  endif

#   define __MAP_SUPER  __map< _Key, _Tp, _Compare, __STL_DEFAULT_PAIR_ALLOCATOR(const _Key, _Tp) >


// provide a "default" map adaptor
__MAP_TEMPLATE_HEADER
class map : public __MAP_SUPER
{
  typedef map< __MAP_ARGUMENTS > _Self;
public:
    typedef __MAP_SUPER _Super;
    __IMPORT_WITH_REVERSE_ITERATORS(_Super)
    __IMPORT_SUPER_COPY_ASSIGNMENT(map, _Self, __MAP_SUPER)
    map() : __MAP_SUPER(_Compare()) {}
    explicit map(const _Compare& __comp) : __MAP_SUPER(__comp) {}
    map(const typename _Super::value_type* __first, 
	const typename _Super::value_type* __last) : 
      __MAP_SUPER(__first, __last, _Compare()) { }
    map(const typename _Super::value_type* __first, 
	const typename _Super::value_type* __last, 
        const _Compare& __comp) : __MAP_SUPER(__first, __last, __comp) { }
    map(typename _Super::const_iterator __first, 
	typename _Super::const_iterator __last) : 
        __MAP_SUPER(__first, __last, _Compare()) { }
    map(typename _Super::const_iterator __first, 
	typename _Super::const_iterator __last, 
        const _Compare& __comp) : __MAP_SUPER(__first, __last, __comp) { }
};

#  if defined (__STL_BASE_MATCH_BUG)
__MAP_TEMPLATE_HEADER
inline bool operator==(const map< __MAP_ARGUMENTS >& __x, 
                       const map< __MAP_ARGUMENTS >& __y) {
  typedef __MAP_SUPER _Super;
  return operator==((const _Super&)__x,(const _Super&)__y);
}

__MAP_TEMPLATE_HEADER
inline bool operator<(const map< __MAP_ARGUMENTS >& __x, 
                      const map< __MAP_ARGUMENTS >& __y) {
  typedef __MAP_SUPER _Super;
  return operator < ((const _Super&)__x,(const _Super&)__y);
}
#  endif /* __STL_BASE_MATCH_BUG */

#if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)
#pragma reset woff 1174
#pragma reset woff 1375
#endif

# undef __MAP_TEMPLATE_HEADER
# undef __MAP_ARGUMENTS
# undef __MAP_SUPER
# undef _Compare

# endif /* __STL_USE_WRAPPER_FOR_ALLOC_PARAM */

__STL_END_NAMESPACE

#endif /* __SGI_STL_INTERNAL_MAP_H */

// Local Variables:
// mode:C++
// End:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久精品网| 色综合咪咪久久| 青草av.久久免费一区| 亚洲一区二区av电影| 一区二区三区四区精品在线视频| 国产精品沙发午睡系列990531| 久久奇米777| 国产亚洲精久久久久久| 亚洲精品在线三区| 欧美国产97人人爽人人喊| 国产视频一区二区在线| 国产精品乱码一区二区三区软件 | 亚洲主播在线观看| 夜夜嗨av一区二区三区中文字幕 | 欧美一区二区性放荡片| 91精品国产全国免费观看| 精品国产免费人成在线观看| 久久精品人人做人人综合| 国产精品超碰97尤物18| 亚洲国产cao| 国产一区二区毛片| 成人av在线影院| 欧美日韩色综合| 久久精品夜色噜噜亚洲aⅴ| 成人欧美一区二区三区| 亚洲成av人影院| 国产精品亚洲第一| 欧美在线free| 国产亚洲美州欧州综合国| 亚洲精品伦理在线| 精品一区二区三区蜜桃| 一本久道中文字幕精品亚洲嫩| 欧美精品18+| 久久精品欧美日韩精品| 亚洲中国最大av网站| 国产综合久久久久久鬼色| 一本一道综合狠狠老| 91精品婷婷国产综合久久性色 | 日本欧美在线观看| 成人av在线资源网| 欧美成人一区二区三区在线观看 | 青青草97国产精品免费观看 | 国产日本亚洲高清| 午夜激情综合网| av电影在线观看不卡| 日韩欧美精品三级| 亚洲综合区在线| www.色综合.com| 精品国产百合女同互慰| 亚洲激情av在线| 大胆亚洲人体视频| 精品国产乱码久久久久久老虎| 亚洲资源中文字幕| 99在线视频精品| 国产精品午夜久久| 精品一区二区三区在线视频| 欧美日韩精品一区二区三区蜜桃| 国产精品成人一区二区三区夜夜夜| 日本成人在线一区| 欧美色图天堂网| 亚洲视频一二三| 暴力调教一区二区三区| 久久久一区二区三区| 美女视频黄久久| 日韩一级免费观看| 日韩成人dvd| 7777精品久久久大香线蕉| 亚洲女人的天堂| 91在线国产观看| 国产精品久久久久久久久久久免费看| 国产一区二区三区黄视频 | 国产成人午夜精品影院观看视频 | 在线播放视频一区| 亚洲国产日日夜夜| 欧美日韩免费一区二区三区 | 一区二区三区精密机械公司| www.欧美.com| 亚洲蜜桃精久久久久久久| 波多野结衣中文字幕一区| 欧美国产一区二区| 成人成人成人在线视频| 综合色中文字幕| 色猫猫国产区一区二在线视频| 亚洲精品视频在线观看免费| 色婷婷激情久久| 日韩影视精彩在线| 欧美一区二区三区四区视频| 麻豆成人久久精品二区三区小说| 日韩精品中文字幕在线一区| 国产一区二区三区在线观看免费视频| 久久久久久久久99精品| 成人在线视频一区二区| 自拍偷拍国产亚洲| 欧美日韩一区三区| 久久99精品一区二区三区| 国产色综合久久| 日本韩国精品一区二区在线观看| 亚洲午夜电影在线观看| 日韩女优视频免费观看| 成人黄色国产精品网站大全在线免费观看| 国产精品嫩草久久久久| 欧美日韩精品免费观看视频| 久久aⅴ国产欧美74aaa| 国产精品无遮挡| 91精品国产乱码久久蜜臀| 国产精品一区二区男女羞羞无遮挡| **欧美大码日韩| 日韩你懂的在线播放| 成人福利视频在线| 日本不卡的三区四区五区| 国产精品国产馆在线真实露脸 | 久久精品欧美日韩精品| 在线观看日韩高清av| 久草中文综合在线| 亚洲最新在线观看| 国产亚洲欧美日韩日本| 在线成人午夜影院| av不卡一区二区三区| 美女视频黄久久| 亚洲一区视频在线观看视频| 国产婷婷一区二区| 欧美肥妇bbw| 色狠狠色噜噜噜综合网| 国产成都精品91一区二区三| 日韩在线一区二区| 国产精品乱人伦中文| 精品理论电影在线观看| 欧美精品久久99久久在免费线 | 国产精品久久久久一区| 欧美一区二区三区白人| 日本高清成人免费播放| 成人一区二区视频| 国产成人精品影院| 国产在线精品国自产拍免费| 全国精品久久少妇| 亚洲a一区二区| 亚洲制服丝袜在线| 亚洲人成人一区二区在线观看| 日本一区二区三区dvd视频在线| 日韩一级片网站| 91精品国产综合久久香蕉的特点| 色狠狠综合天天综合综合| 成人在线视频首页| 成人性生交大片| 成人午夜精品在线| 国产成人在线视频播放| 激情综合五月天| 国产乱理伦片在线观看夜一区| 久久se这里有精品| 精品在线一区二区三区| 国产一区二区三区黄视频| 国产精品18久久久久久久久久久久 | 亚洲欧洲日韩一区二区三区| 久久久久久97三级| 中文字幕成人在线观看| 中文成人av在线| 亚洲色图视频网站| 一区二区三区精品视频| 丝袜美腿成人在线| 欧美aⅴ一区二区三区视频| 蜜桃视频一区二区三区| 国产一区二区久久| 国产激情视频一区二区三区欧美| 国产精品影视在线| 国产99久久久国产精品| 成人看片黄a免费看在线| 91视频xxxx| 欧美日韩免费电影| 欧美一级精品大片| 欧美激情艳妇裸体舞| 亚洲精品免费看| 老色鬼精品视频在线观看播放| 国产一区二区三区香蕉| 99麻豆久久久国产精品免费| 欧亚洲嫩模精品一区三区| 欧美一区二区三区性视频| 国产日产欧美一区二区视频| 一区二区三区中文字幕电影| 免费在线观看一区| 成人午夜在线播放| 欧美性受xxxx黑人xyx| 欧美精品一区二区高清在线观看| 国产婷婷精品av在线| 亚洲国产综合视频在线观看| 国产最新精品精品你懂的| 99综合电影在线视频| 日韩欧美在线影院| 亚洲人成网站色在线观看| 蜜桃久久久久久| 99国产精品久久| 欧美精品一区二区高清在线观看 | 国产主播一区二区| 色综合久久久久综合体桃花网| 67194成人在线观看| 国产亚洲一区二区三区| 东方aⅴ免费观看久久av| 日本精品一区二区三区四区的功能| 欧美电影免费观看高清完整版在线| 综合久久国产九一剧情麻豆| 秋霞午夜鲁丝一区二区老狼|