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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stl_deque.h

?? The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterat
?? H
?? 第 1 頁 / 共 4 頁
字號:
/* * * 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. * * * Copyright (c) 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. *//* NOTE: This is an internal header file, included by other STL headers. *   You should not attempt to use it directly. */#ifndef __SGI_STL_INTERNAL_DEQUE_H#define __SGI_STL_INTERNAL_DEQUE_H/* Class invariants: *  For any nonsingular iterator i: *    i.node is the address of an element in the map array.  The *      contents of i.node is a pointer to the beginning of a node. *    i.first == *(i.node)  *    i.last  == i.first + node_size *    i.cur is a pointer in the range [i.first, i.last).  NOTE: *      the implication of this is that i.cur is always a dereferenceable *      pointer, even if i is a past-the-end iterator. *  Start and Finish are always nonsingular iterators.  NOTE: this means *    that an empty deque must have one node, and that a deque *    with N elements, where N is the buffer size, must have two nodes. *  For every node other than start.node and finish.node, every element *    in the node is an initialized object.  If start.node == finish.node, *    then [start.cur, finish.cur) are initialized objects, and *    the elements outside that range are uninitialized storage.  Otherwise, *    [start.cur, start.last) and [finish.first, finish.cur) are initialized *    objects, and [start.first, start.cur) and [finish.cur, finish.last) *    are uninitialized storage. *  [map, map + map_size) is a valid, non-empty range.   *  [start.node, finish.node] is a valid range contained within  *    [map, map + map_size).   *  A pointer in the range [map, map + map_size) points to an allocated node *    if and only if the pointer is in the range [start.node, finish.node]. *//* * In previous versions of deque, node_size was fixed by the  * implementation.  In this version, however, users can select * the node size.  Deque has three template parameters; the third, * a number of type size_t, is the number of elements per node. * If the third template parameter is 0 (which is the default),  * then deque will use a default node size. * * The only reason for using an alternate node size is if your application * requires a different performance tradeoff than the default.  If, * for example, your program contains many deques each of which contains * only a few elements, then you might want to save memory (possibly * by sacrificing some speed) by using smaller nodes. * * Unfortunately, some compilers have trouble with non-type template  * parameters; stl_config.h defines __STL_NON_TYPE_TMPL_PARAM_BUG if * that is the case.  If your compiler is one of them, then you will * not be able to use alternate node sizes; you will have to use the * default value. */__STL_BEGIN_NAMESPACE #if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)#pragma set woff 1174#pragma set woff 1375#endif// Note: this function is simply a kludge to work around several compilers'//  bugs in handling constant expressions.inline size_t__deque_buf_size(size_t __n, size_t __size){  return __n != 0 ? __n : (__size < 512 ? size_t(512 / __size) : size_t(1));}#ifndef __STL_NON_TYPE_TMPL_PARAM_BUGtemplate <class _Tp, class _Ref, class _Ptr, size_t __bufsiz>struct _Deque_iterator {  typedef _Deque_iterator<_Tp,_Tp&,_Tp*,__bufsiz>             iterator;  typedef _Deque_iterator<_Tp,const _Tp&,const _Tp*,__bufsiz> const_iterator;  static size_t     _S_buffer_size() { return __deque_buf_size(__bufsiz, sizeof(_Tp)); }#else /* __STL_NON_TYPE_TMPL_PARAM_BUG */template <class _Tp, class _Ref, class _Ptr>struct _Deque_iterator {  typedef _Deque_iterator<_Tp, _Tp&, _Tp*>             iterator;  typedef _Deque_iterator<_Tp, const _Tp&, const _Tp*> const_iterator;  static size_t     _S_buffer_size() { return __deque_buf_size(0, sizeof(_Tp)); }#endif  typedef random_access_iterator_tag iterator_category;  typedef _Tp value_type;  typedef _Ptr pointer;  typedef _Ref reference;  typedef size_t size_type;  typedef ptrdiff_t difference_type;  typedef _Tp** _Map_pointer;  typedef _Deque_iterator _Self;  _Tp* _M_cur;  _Tp* _M_first;  _Tp* _M_last;  _Map_pointer _M_node;  _Deque_iterator(_Tp* __x, _Map_pointer __y)     : _M_cur(__x), _M_first(*__y),      _M_last(*__y + _S_buffer_size()), _M_node(__y) {}  _Deque_iterator() : _M_cur(0), _M_first(0), _M_last(0), _M_node(0) {}  _Deque_iterator(const iterator& __x)    : _M_cur(__x._M_cur), _M_first(__x._M_first),       _M_last(__x._M_last), _M_node(__x._M_node) {}  reference operator*() const { return *_M_cur; }#ifndef __SGI_STL_NO_ARROW_OPERATOR  pointer operator->() const { return _M_cur; }#endif /* __SGI_STL_NO_ARROW_OPERATOR */  difference_type operator-(const _Self& __x) const {    return difference_type(_S_buffer_size()) * (_M_node - __x._M_node - 1) +      (_M_cur - _M_first) + (__x._M_last - __x._M_cur);  }  _Self& operator++() {    ++_M_cur;    if (_M_cur == _M_last) {      _M_set_node(_M_node + 1);      _M_cur = _M_first;    }    return *this;   }  _Self operator++(int)  {    _Self __tmp = *this;    ++*this;    return __tmp;  }  _Self& operator--() {    if (_M_cur == _M_first) {      _M_set_node(_M_node - 1);      _M_cur = _M_last;    }    --_M_cur;    return *this;  }  _Self operator--(int) {    _Self __tmp = *this;    --*this;    return __tmp;  }  _Self& operator+=(difference_type __n)  {    difference_type __offset = __n + (_M_cur - _M_first);    if (__offset >= 0 && __offset < difference_type(_S_buffer_size()))      _M_cur += __n;    else {      difference_type __node_offset =        __offset > 0 ? __offset / difference_type(_S_buffer_size())                   : -difference_type((-__offset - 1) / _S_buffer_size()) - 1;      _M_set_node(_M_node + __node_offset);      _M_cur = _M_first +         (__offset - __node_offset * difference_type(_S_buffer_size()));    }    return *this;  }  _Self operator+(difference_type __n) const  {    _Self __tmp = *this;    return __tmp += __n;  }  _Self& operator-=(difference_type __n) { return *this += -__n; }   _Self operator-(difference_type __n) const {    _Self __tmp = *this;    return __tmp -= __n;  }  reference operator[](difference_type __n) const { return *(*this + __n); }  bool operator==(const _Self& __x) const { return _M_cur == __x._M_cur; }  bool operator!=(const _Self& __x) const { return !(*this == __x); }  bool operator<(const _Self& __x) const {    return (_M_node == __x._M_node) ?       (_M_cur < __x._M_cur) : (_M_node < __x._M_node);  }  bool operator>(const _Self& __x) const  { return __x < *this; }  bool operator<=(const _Self& __x) const { return !(__x < *this); }  bool operator>=(const _Self& __x) const { return !(*this < __x); }  void _M_set_node(_Map_pointer __new_node) {    _M_node = __new_node;    _M_first = *__new_node;    _M_last = _M_first + difference_type(_S_buffer_size());  }};#ifndef __STL_CLASS_PARTIAL_SPECIALIZATION#ifndef __STL_NON_TYPE_TMPL_PARAM_BUGtemplate <class _Tp, class _Ref, class _Ptr, size_t __bufsiz>inline random_access_iterator_tagiterator_category(const _Deque_iterator<_Tp,_Ref,_Ptr,__bufsiz>&) {  return random_access_iterator_tag();}template <class _Tp, class _Ref, class _Ptr, size_t __bufsiz>inline _Tp*value_type(const _Deque_iterator<_Tp,_Ref,_Ptr,__bufsiz>&) {  return 0;}template <class _Tp, class _Ref, class _Ptr, size_t __bufsiz>inline ptrdiff_t*distance_type(const _Deque_iterator<_Tp,_Ref,_Ptr,__bufsiz>&) {  return 0;}#else /* __STL_NON_TYPE_TMPL_PARAM_BUG */template <class _Tp, class _Ref, class _Ptr>inline random_access_iterator_tagiterator_category(const _Deque_iterator<_Tp,_Ref,_Ptr>&){  return random_access_iterator_tag();}template <class _Tp, class _Ref, class _Ptr>inline _Tp*value_type(const _Deque_iterator<_Tp,_Ref,_Ptr>&) { return 0; }template <class _Tp, class _Ref, class _Ptr>inline ptrdiff_t*distance_type(const _Deque_iterator<_Tp,_Ref,_Ptr>&) {  return 0;}#endif /* __STL_NON_TYPE_TMPL_PARAM_BUG */#endif /* __STL_CLASS_PARTIAL_SPECIALIZATION */// Deque base class.  It has two purposes.  First, its constructor//  and destructor allocate (but don't initialize) storage.  This makes//  exception safety easier.  Second, the base class encapsulates all of//  the differences between SGI-style allocators and standard-conforming//  allocators.#ifdef __STL_USE_STD_ALLOCATORS// Base class for ordinary allocators.template <class _Tp, class _Alloc, size_t __bufsiz, bool __is_static>class _Deque_alloc_base {public:  typedef typename _Alloc_traits<_Tp,_Alloc>::allocator_type allocator_type;  allocator_type get_allocator() const { return _M_node_allocator; }  _Deque_alloc_base(const allocator_type& __a)    : _M_node_allocator(__a), _M_map_allocator(__a),      _M_map(0), _M_map_size(0)  {}  protected:  typedef typename _Alloc_traits<_Tp*, _Alloc>::allocator_type          _Map_allocator_type;  allocator_type      _M_node_allocator;  _Map_allocator_type _M_map_allocator;  _Tp* _M_allocate_node() {    return _M_node_allocator.allocate(__deque_buf_size(__bufsiz,sizeof(_Tp)));  }  void _M_deallocate_node(_Tp* __p) {    _M_node_allocator.deallocate(__p, __deque_buf_size(__bufsiz,sizeof(_Tp)));  }  _Tp** _M_allocate_map(size_t __n)     { return _M_map_allocator.allocate(__n); }  void _M_deallocate_map(_Tp** __p, size_t __n)     { _M_map_allocator.deallocate(__p, __n); }  _Tp** _M_map;  size_t _M_map_size;};// Specialization for instanceless allocators.template <class _Tp, class _Alloc, size_t __bufsiz>class _Deque_alloc_base<_Tp, _Alloc, __bufsiz, true>{public:  typedef typename _Alloc_traits<_Tp,_Alloc>::allocator_type allocator_type;  allocator_type get_allocator() const { return allocator_type(); }  _Deque_alloc_base(const allocator_type&) : _M_map(0), _M_map_size(0) {}  protected:  typedef typename _Alloc_traits<_Tp, _Alloc>::_Alloc_type _Node_alloc_type;  typedef typename _Alloc_traits<_Tp*, _Alloc>::_Alloc_type _Map_alloc_type;  _Tp* _M_allocate_node() {    return _Node_alloc_type::allocate(__deque_buf_size(__bufsiz,                                                       sizeof(_Tp)));  }  void _M_deallocate_node(_Tp* __p) {    _Node_alloc_type::deallocate(__p, __deque_buf_size(__bufsiz,                                                        sizeof(_Tp)));  }  _Tp** _M_allocate_map(size_t __n)     { return _Map_alloc_type::allocate(__n); }  void _M_deallocate_map(_Tp** __p, size_t __n)     { _Map_alloc_type::deallocate(__p, __n); }  _Tp** _M_map;  size_t _M_map_size;};template <class _Tp, class _Alloc, size_t __bufsiz>class _Deque_base  : public _Deque_alloc_base<_Tp,_Alloc,__bufsiz,                               _Alloc_traits<_Tp, _Alloc>::_S_instanceless>{public:  typedef _Deque_alloc_base<_Tp,_Alloc,__bufsiz,                             _Alloc_traits<_Tp, _Alloc>::_S_instanceless>          _Base;  typedef typename _Base::allocator_type allocator_type;  typedef _Deque_iterator<_Tp,_Tp&,_Tp*,__bufsiz>              iterator;  typedef _Deque_iterator<_Tp,const _Tp&,const _Tp*, __bufsiz> const_iterator;  _Deque_base(const allocator_type& __a, size_t __num_elements)    : _Base(__a), _M_start(), _M_finish()    { _M_initialize_map(__num_elements); }  _Deque_base(const allocator_type& __a)     : _Base(__a), _M_start(), _M_finish() {}  ~_Deque_base();    protected:  void _M_initialize_map(size_t);  void _M_create_nodes(_Tp** __nstart, _Tp** __nfinish);  void _M_destroy_nodes(_Tp** __nstart, _Tp** __nfinish);  enum { _S_initial_map_size = 8 };protected:  iterator _M_start;  iterator _M_finish;};#else /* __STL_USE_STD_ALLOCATORS */template <class _Tp, class _Alloc, size_t __bufsiz>class _Deque_base {public:#ifndef __STL_NON_TYPE_TMPL_PARAM_BUG  typedef _Deque_iterator<_Tp,_Tp&,_Tp*,__bufsiz>              iterator;  typedef _Deque_iterator<_Tp,const _Tp&,const _Tp*, __bufsiz> const_iterator;#else /* __STL_NON_TYPE_TMPL_PARAM_BUG */  typedef _Deque_iterator<_Tp,_Tp&,_Tp*>                       iterator;  typedef _Deque_iterator<_Tp,const _Tp&,const _Tp*>           const_iterator;#endif /* __STL_NON_TYPE_TMPL_PARAM_BUG */  typedef _Alloc allocator_type;  allocator_type get_allocator() const { return allocator_type(); }  _Deque_base(const allocator_type&, size_t __num_elements)    : _M_map(0), _M_map_size(0),  _M_start(), _M_finish() {    _M_initialize_map(__num_elements);  }  _Deque_base(const allocator_type&)    : _M_map(0), _M_map_size(0),  _M_start(), _M_finish() {}  ~_Deque_base();    protected:  void _M_initialize_map(size_t);  void _M_create_nodes(_Tp** __nstart, _Tp** __nfinish);  void _M_destroy_nodes(_Tp** __nstart, _Tp** __nfinish);  enum { _S_initial_map_size = 8 };protected:  _Tp** _M_map;  size_t _M_map_size;    iterator _M_start;  iterator _M_finish;  typedef simple_alloc<_Tp, _Alloc>  _Node_alloc_type;  typedef simple_alloc<_Tp*, _Alloc> _Map_alloc_type;  _Tp* _M_allocate_node()    { return _Node_alloc_type::allocate(__deque_buf_size(__bufsiz,                                                          sizeof(_Tp))); }  void _M_deallocate_node(_Tp* __p)    { _Node_alloc_type::deallocate(__p, __deque_buf_size(__bufsiz,                                                          sizeof(_Tp))); }  _Tp** _M_allocate_map(size_t __n)     { return _Map_alloc_type::allocate(__n); }  void _M_deallocate_map(_Tp** __p, size_t __n)     { _Map_alloc_type::deallocate(__p, __n); }};#endif /* __STL_USE_STD_ALLOCATORS */// Non-inline member functions from _Deque_base.template <class _Tp, class _Alloc, size_t __bufsiz>_Deque_base<_Tp,_Alloc,__bufsiz>::~_Deque_base() {  if (_M_map) {    _M_destroy_nodes(_M_start._M_node, _M_finish._M_node + 1);    _M_deallocate_map(_M_map, _M_map_size);  }}template <class _Tp, class _Alloc, size_t __bufsiz>void_Deque_base<_Tp,_Alloc,__bufsiz>::_M_initialize_map(size_t __num_elements){  size_t __num_nodes =     __num_elements / __deque_buf_size(__bufsiz, sizeof(_Tp)) + 1;  _M_map_size = max((size_t) _S_initial_map_size, __num_nodes + 2);  _M_map = _M_allocate_map(_M_map_size);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
床上的激情91.| 欧美三区在线观看| 五月综合激情婷婷六月色窝| 亚洲精品一区二区三区福利| 欧美四级电影网| 国产69精品久久久久777| 五月天丁香久久| 亚洲人成网站在线| 欧美韩国日本不卡| www精品美女久久久tv| 精品视频999| 欧洲色大大久久| 99精品欧美一区| 成人妖精视频yjsp地址| 精品一区二区综合| 日韩电影在线一区二区| 成人免费毛片片v| 久久精品国产精品亚洲精品 | 久久久久一区二区三区四区| 欧美区视频在线观看| 色综合久久99| aaa欧美日韩| 高清国产一区二区三区| 国产精品一区二区三区四区| 久久国产精品72免费观看| 日韩国产精品久久久久久亚洲| 亚洲另类在线视频| 亚洲欧美日韩一区| 亚洲欧美一区二区三区国产精品| 国产欧美1区2区3区| 26uuu精品一区二区| 日韩免费福利电影在线观看| 欧美一区二区三区在线视频 | 麻豆精品视频在线观看免费| 亚洲国产欧美在线| 亚洲一二三四区不卡| 亚洲一区二区三区四区在线 | 久久精品久久精品| 乱中年女人伦av一区二区| 欧美96一区二区免费视频| 蜜臀av亚洲一区中文字幕| 毛片不卡一区二区| 久久99精品久久久久久| 韩国欧美一区二区| 床上的激情91.| 91网站最新网址| 日本国产一区二区| 欧美理论片在线| 日韩免费观看2025年上映的电影| 亚洲精品一区二区三区四区高清 | 午夜视频一区在线观看| 天天色天天操综合| 美国毛片一区二区| 国产成人自拍网| 99精品视频一区二区三区| 色综合激情五月| 欧美日韩不卡一区| 精品va天堂亚洲国产| 国产午夜一区二区三区| 最新久久zyz资源站| 亚洲一区二区在线播放相泽| 热久久免费视频| 国产二区国产一区在线观看| 99久久免费视频.com| 欧美影视一区在线| 日韩免费高清视频| 国产精品久久久久久久久晋中| 亚洲摸摸操操av| 免费在线观看成人| 精品日韩一区二区三区免费视频| 久久久激情视频| 亚洲在线成人精品| 激情综合色播激情啊| 94-欧美-setu| 日韩一区二区免费在线电影| 国产欧美久久久精品影院| 一二三四区精品视频| 国内精品免费**视频| 一本色道**综合亚洲精品蜜桃冫| 欧美理论片在线| 亚洲国产精品成人久久综合一区 | 国产一区二区三区免费看| 91欧美一区二区| 欧美刺激脚交jootjob| 亚洲三级视频在线观看| 免费欧美高清视频| 99久久99久久精品免费看蜜桃| 欧美精品乱人伦久久久久久| 国产性色一区二区| 91国偷自产一区二区三区观看| 精品成人一区二区| 亚洲一区在线电影| 成人美女视频在线看| 欧美一级日韩不卡播放免费| 亚洲视频精选在线| 国内精品伊人久久久久av影院| 欧美视频一区二区在线观看| 国产免费久久精品| 久久99精品国产.久久久久 | 欧美色老头old∨ideo| 国产午夜精品一区二区| 日本亚洲视频在线| 欧美无砖砖区免费| 中文字幕日本不卡| 国产一区二区精品久久99| 91麻豆精品国产91久久久资源速度 | 久久成人免费电影| 精品视频1区2区3区| 亚洲视频小说图片| 成人久久18免费网站麻豆| 精品国产一区二区三区四区四| 一区二区三区中文字幕| 成人高清在线视频| 久久亚洲综合色一区二区三区| 天天操天天色综合| 欧美在线你懂的| 一区二区三区中文在线| 99国产精品视频免费观看| 国产婷婷色一区二区三区 | 岛国一区二区在线观看| 精品久久国产字幕高潮| 免费一级片91| 亚洲不卡av一区二区三区| 91免费国产在线| 亚洲欧美自拍偷拍色图| 国产精品18久久久久久久网站| 日韩三级精品电影久久久| 日韩精品三区四区| 欧美精品tushy高清| 亚洲成人综合在线| 欧美日韩一级视频| 三级久久三级久久| 日韩一区二区三区四区五区六区| 亚洲不卡av一区二区三区| 欧美日韩大陆一区二区| 天堂蜜桃91精品| 在线播放中文字幕一区| 奇米一区二区三区| 欧美精品一区二| 国产高清精品网站| 中文在线免费一区三区高中清不卡| 国产成人精品一区二| 日韩一区在线免费观看| 色久优优欧美色久优优| 亚洲国产日韩一级| 亚洲免费在线观看| 欧美视频一区二| 日韩av电影免费观看高清完整版| 91精品国产高清一区二区三区蜜臀| 日本中文字幕一区二区有限公司| 欧美一区国产二区| 国产很黄免费观看久久| 国产精品美日韩| 欧美色图免费看| 捆绑紧缚一区二区三区视频| 久久精品一区二区| 91蜜桃在线观看| 日韩在线a电影| 久久理论电影网| 色美美综合视频| 蜜臀av一级做a爰片久久| 国产亚洲精品超碰| 欧美自拍偷拍一区| 久久www免费人成看片高清| 欧美国产日韩一二三区| 在线精品国精品国产尤物884a| 日本在线不卡视频一二三区| 久久久久久久久久看片| 欧洲av一区二区嗯嗯嗯啊| 美女免费视频一区| 久久成人18免费观看| 亚洲欧洲日产国码二区| 日韩一区二区在线免费观看| 成人免费看的视频| 天天亚洲美女在线视频| 国产亚洲欧美色| 欧美日韩另类一区| 粉嫩蜜臀av国产精品网站| 亚洲成人一区二区| 国产日韩三级在线| 91精品国产综合久久久蜜臀粉嫩| 国产91在线|亚洲| 亚洲成a人片在线观看中文| 午夜视频在线观看一区二区三区| 理论片日本一区| 国产精品国产三级国产普通话蜜臀| 欧美中文字幕不卡| 国产精品系列在线播放| 午夜精品久久久久久| 中文字幕成人网| 欧美刺激午夜性久久久久久久| 91亚洲国产成人精品一区二区三| 美女视频黄频大全不卡视频在线播放| 国产女同互慰高潮91漫画| 一区二区成人在线| 国产色综合一区| 日韩午夜精品视频| 在线影院国内精品| 从欧美一区二区三区| 精品一区二区在线免费观看|