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

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

?? 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);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青草国产精品久久久久久| 欧美电影免费观看完整版| 亚洲免费观看高清完整版在线 | 国产婷婷一区二区| 国内久久精品视频| 中文字幕久久午夜不卡| 97久久超碰精品国产| 伊人开心综合网| 欧美精品一卡二卡| 久久成人免费网| 日本一区二区三区四区| 91免费视频网| 五月天一区二区三区| 欧美一区三区四区| 国产精品综合久久| 亚洲三级电影网站| 欧美欧美欧美欧美首页| 激情av综合网| 亚洲精品成人精品456| 在线播放国产精品二区一二区四区| 美女一区二区在线观看| 国产亚洲制服色| 在线观看视频91| 精品一区二区在线看| 国产人成亚洲第一网站在线播放| 在线免费观看日本一区| 麻豆中文一区二区| 国产精品传媒在线| 91精品福利在线一区二区三区| 国产精品一区二区三区乱码| 亚洲精选视频免费看| 精品少妇一区二区三区免费观看 | 久久久噜噜噜久久中文字幕色伊伊| 国产成都精品91一区二区三| 亚洲地区一二三色| 国产欧美日韩视频在线观看| 欧美视频一区在线观看| 狠狠色丁香婷综合久久| 亚洲免费观看高清完整版在线| 日韩精品一区在线观看| 93久久精品日日躁夜夜躁欧美| 免费美女久久99| 樱花影视一区二区| 久久久久九九视频| 884aa四虎影成人精品一区| 不卡的电影网站| 久久国产精品99久久久久久老狼| 亚洲六月丁香色婷婷综合久久| 精品少妇一区二区| 欧美人与z0zoxxxx视频| 99久久久国产精品免费蜜臀| 韩国一区二区在线观看| 婷婷夜色潮精品综合在线| 国产精品夫妻自拍| 久久久www成人免费无遮挡大片| 欧美日韩夫妻久久| 91麻豆6部合集magnet| 成人午夜免费电影| 精品亚洲国产成人av制服丝袜| 亚洲福利视频一区二区| 综合久久综合久久| 国产精品传媒在线| 国产精品久久三| 国产视频一区二区三区在线观看| 日韩欧美第一区| 欧美日本一区二区在线观看| 91国产福利在线| 色婷婷综合五月| 91玉足脚交白嫩脚丫在线播放| 成人一区二区三区中文字幕| 国产精品亚洲专一区二区三区| 日本在线观看不卡视频| 日本在线不卡一区| 秋霞电影一区二区| 日本欧美在线观看| 日韩二区在线观看| 日韩av不卡在线观看| 蜜臀av性久久久久av蜜臀妖精| 日本中文字幕一区二区有限公司| 日韩激情视频网站| 日韩高清中文字幕一区| 美日韩黄色大片| 激情伊人五月天久久综合| 久草这里只有精品视频| 激情文学综合网| 国产精品一级在线| 成人午夜av电影| 91在线丨porny丨国产| 色激情天天射综合网| 欧美色图一区二区三区| 欧美日韩三级视频| 日韩一级免费一区| 久久久午夜电影| 中文字幕一区二区三区在线播放| 亚洲视频在线观看三级| 亚洲一区二区三区四区中文字幕| 亚洲国产裸拍裸体视频在线观看乱了| 五月婷婷激情综合| 精品一区二区综合| av不卡在线播放| 欧美色图在线观看| 欧美一级二级三级蜜桃| 久久久精品tv| 亚洲私人黄色宅男| 日韩专区欧美专区| 国产精品正在播放| 91蝌蚪porny成人天涯| 欧美猛男男办公室激情| 久久亚洲精精品中文字幕早川悠里| 欧美激情在线一区二区三区| 亚洲一区免费视频| 久久91精品国产91久久小草| 在线观看一区二区精品视频| 91精品国产91久久久久久一区二区 | 国产.欧美.日韩| 日本高清不卡一区| 日韩免费电影网站| 国产精品国产三级国产普通话三级 | 91丨九色丨蝌蚪富婆spa| 欧美日韩精品免费| 国产日韩欧美一区二区三区乱码| 亚洲美腿欧美偷拍| 老司机免费视频一区二区| av在线不卡观看免费观看| 欧美一区二区三区公司| 中文字幕一区二区在线观看| 免费观看一级欧美片| 99国产精品视频免费观看| 欧美日本国产一区| 综合婷婷亚洲小说| 久久99久久99小草精品免视看| 91网址在线看| 国产色婷婷亚洲99精品小说| 日韩有码一区二区三区| 色婷婷久久久综合中文字幕| 久久久久久久久久久久久女国产乱| 亚洲电影第三页| 97se狠狠狠综合亚洲狠狠| 26uuu久久天堂性欧美| 亚洲bt欧美bt精品| 色综合一个色综合| 国产精品久久久久四虎| 久久精品国产网站| 欧美久久久久久久久久| 亚洲国产中文字幕在线视频综合| 国产69精品久久99不卡| 久久综合九色综合97婷婷女人| 欧美日韩在线不卡| 精品国产伦一区二区三区免费| 一区二区三区美女视频| 国产成人精品三级| 久久亚洲综合色一区二区三区 | 91蜜桃网址入口| 日韩一级大片在线观看| 久久色.com| 久久精品99国产精品| 欧美性色aⅴ视频一区日韩精品| 欧美激情资源网| 日韩国产一区二| 777午夜精品视频在线播放| 一区二区三区小说| www.欧美色图| 国产精品免费久久| 国产一区啦啦啦在线观看| 欧美日高清视频| 一区二区三区不卡视频| 成人美女视频在线看| 久久综合九色综合欧美98| 久久精品理论片| 欧美一区二区三区啪啪| 午夜精品久久久久久久久久| 在线观看一区不卡| 亚洲欧美日韩一区二区三区在线观看| 久久99国内精品| 精品国产免费视频| 蜜桃视频在线一区| 久久久综合激的五月天| 国产一区二区精品在线观看| 欧美一区二区三区影视| 日韩精品国产精品| 2欧美一区二区三区在线观看视频| 丝袜美腿成人在线| 欧美日本国产一区| 一区二区三区不卡视频在线观看 | 91精品办公室少妇高潮对白| 亚洲国产岛国毛片在线| 丰满白嫩尤物一区二区| 中文字幕一区av| 91在线国产观看| 亚洲欧美成人一区二区三区| 国产精品亚洲视频| 最新不卡av在线| 91原创在线视频| 亚洲国产日韩精品| 日韩欧美一区二区免费| 久久99久久久久久久久久久| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲精品成人在线| 日韩一区二区高清| 激情图片小说一区|