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

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

?? stl_rope.h

?? stl 源代碼
?? H
?? 第 1 頁 / 共 5 頁
字號:
/* * Copyright (c) 1997-1998 * 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. */// rope<_CharT,_Alloc> is a sequence of _CharT.// Ropes appear to be mutable, but update operations// really copy enough of the data structure to leave the original// valid.  Thus ropes can be logically copied by just copying// a pointer value.#ifndef __SGI_STL_INTERNAL_ROPE_H# define __SGI_STL_INTERNAL_ROPE_H# ifdef __GC#   define __GC_CONST const# else#   include <stl_threads.h>#   define __GC_CONST   // constant except for deallocation# endif# ifdef __STL_SGI_THREADS#    include <mutex.h># endif__STL_BEGIN_NAMESPACE#if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)#pragma set woff 1174#endif// The _S_eos function is used for those functions that// convert to/from C-like strings to detect the end of the string.// The end-of-C-string character.// This is what the draft standard says it should be.template <class _CharT>inline _CharT _S_eos(_CharT*) { return _CharT(); }// Test for basic character types.// For basic character types leaves having a trailing eos.template <class _CharT>inline bool _S_is_basic_char_type(_CharT*) { return false; }template <class _CharT>inline bool _S_is_one_byte_char_type(_CharT*) { return false; }inline bool _S_is_basic_char_type(char*) { return true; }inline bool _S_is_one_byte_char_type(char*) { return true; }inline bool _S_is_basic_char_type(wchar_t*) { return true; }// Store an eos iff _CharT is a basic character type.// Do not reference _S_eos if it isn't.template <class _CharT>inline void _S_cond_store_eos(_CharT&) {}inline void _S_cond_store_eos(char& __c) { __c = 0; }inline void _S_cond_store_eos(wchar_t& __c) { __c = 0; }// char_producers are logically functions that generate a section of// a string.  These can be convereted to ropes.  The resulting rope// invokes the char_producer on demand.  This allows, for example,// files to be viewed as ropes without reading the entire file.template <class _CharT>class char_producer {    public:        virtual ~char_producer() {};        virtual void operator()(size_t __start_pos, size_t __len,                                 _CharT* __buffer) = 0;        // Buffer should really be an arbitrary output iterator.        // That way we could flatten directly into an ostream, etc.        // This is thoroughly impossible, since iterator types don't        // have runtime descriptions.};// Sequence buffers://// Sequence must provide an append operation that appends an// array to the sequence.  Sequence buffers are useful only if// appending an entire array is cheaper than appending element by element.// This is true for many string representations.// This should  perhaps inherit from ostream<sequence::value_type>// and be implemented correspondingly, so that they can be used// for formatted.  For the sake of portability, we don't do this yet.//// For now, sequence buffers behave as output iterators.  But they also// behave a little like basic_ostringstream<sequence::value_type> and a// little like containers.template<class _Sequence, size_t _Buf_sz = 100#   if defined(__sgi) && !defined(__GNUC__)#        define __TYPEDEF_WORKAROUND         ,class _V = typename _Sequence::value_type#   endif        >// The 3rd parameter works around a common compiler bug.class sequence_buffer : public output_iterator {    public:#       ifndef __TYPEDEF_WORKAROUND            typedef typename _Sequence::value_type value_type;#       else            typedef _V value_type;#       endif    protected:        _Sequence* _M_prefix;        value_type _M_buffer[_Buf_sz];        size_t     _M_buf_count;    public:        void flush() {            _M_prefix->append(_M_buffer, _M_buffer + _M_buf_count);            _M_buf_count = 0;        }        ~sequence_buffer() { flush(); }        sequence_buffer() : _M_prefix(0), _M_buf_count(0) {}        sequence_buffer(const sequence_buffer& __x) {            _M_prefix = __x._M_prefix;            _M_buf_count = __x._M_buf_count;            copy(__x._M_buffer, __x._M_buffer + __x._M_buf_count, _M_buffer);        }        sequence_buffer(sequence_buffer& __x) {            __x.flush();            _M_prefix = __x._M_prefix;            _M_buf_count = 0;        }        sequence_buffer(_Sequence& __s) : _M_prefix(&__s), _M_buf_count(0) {}        sequence_buffer& operator= (sequence_buffer& __x) {            __x.flush();            _M_prefix = __x._M_prefix;            _M_buf_count = 0;            return *this;        }        sequence_buffer& operator= (const sequence_buffer& __x) {            _M_prefix = __x._M_prefix;            _M_buf_count = __x._M_buf_count;            copy(__x._M_buffer, __x._M_buffer + __x._M_buf_count, _M_buffer);            return *this;        }        void push_back(value_type __x)        {            if (_M_buf_count < _Buf_sz) {                _M_buffer[_M_buf_count] = __x;                ++_M_buf_count;            } else {                flush();                _M_buffer[0] = __x;                _M_buf_count = 1;            }        }        void append(value_type* __s, size_t __len)        {            if (__len + _M_buf_count <= _Buf_sz) {                size_t __i = _M_buf_count;                size_t __j = 0;                for (; __j < __len; __i++, __j++) {                    _M_buffer[__i] = __s[__j];                }                _M_buf_count += __len;            } else if (0 == _M_buf_count) {                _M_prefix->append(__s, __s + __len);            } else {                flush();                append(__s, __len);            }        }        sequence_buffer& write(value_type* __s, size_t __len)        {            append(__s, __len);            return *this;        }        sequence_buffer& put(value_type __x)        {            push_back(__x);            return *this;        }        sequence_buffer& operator=(const value_type& __rhs)        {            push_back(__rhs);            return *this;        }        sequence_buffer& operator*() { return *this; }        sequence_buffer& operator++() { return *this; }        sequence_buffer& operator++(int) { return *this; }};// The following should be treated as private, at least for now.template<class _CharT>class _Rope_char_consumer {    public:        // If we had member templates, these should not be virtual.        // For now we need to use run-time parametrization where        // compile-time would do.  Hence this should all be private        // for now.        // The symmetry with char_producer is accidental and temporary.        virtual ~_Rope_char_consumer() {};        virtual bool operator()(const _CharT* __buffer, size_t __len) = 0;};// First a lot of forward declarations.  The standard seems to require// much stricter "declaration before use" than many of the implementations// that preceded it.template<class _CharT, class _Alloc=__STL_DEFAULT_ALLOCATOR(_CharT)> class rope;template<class _CharT, class _Alloc> struct _Rope_RopeConcatenation;template<class _CharT, class _Alloc> struct _Rope_RopeLeaf;template<class _CharT, class _Alloc> struct _Rope_RopeFunction;template<class _CharT, class _Alloc> struct _Rope_RopeSubstring;template<class _CharT, class _Alloc> class _Rope_iterator;template<class _CharT, class _Alloc> class _Rope_const_iterator;template<class _CharT, class _Alloc> class _Rope_char_ref_proxy;template<class _CharT, class _Alloc> class _Rope_char_ptr_proxy;template<class _CharT, class _Alloc>bool operator== (const _Rope_char_ptr_proxy<_CharT,_Alloc>& __x,                 const _Rope_char_ptr_proxy<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>_Rope_const_iterator<_CharT,_Alloc> operator-        (const _Rope_const_iterator<_CharT,_Alloc>& __x,         ptrdiff_t __n);template<class _CharT, class _Alloc>_Rope_const_iterator<_CharT,_Alloc> operator+        (const _Rope_const_iterator<_CharT,_Alloc>& __x,         ptrdiff_t __n);template<class _CharT, class _Alloc>_Rope_const_iterator<_CharT,_Alloc> operator+        (ptrdiff_t __n,         const _Rope_const_iterator<_CharT,_Alloc>& __x);template<class _CharT, class _Alloc>bool operator==         (const _Rope_const_iterator<_CharT,_Alloc>& __x,         const _Rope_const_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>bool operator<         (const _Rope_const_iterator<_CharT,_Alloc>& __x,         const _Rope_const_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>ptrdiff_t operator-         (const _Rope_const_iterator<_CharT,_Alloc>& __x,         const _Rope_const_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>_Rope_iterator<_CharT,_Alloc> operator-        (const _Rope_iterator<_CharT,_Alloc>& __x,         ptrdiff_t __n);template<class _CharT, class _Alloc>_Rope_iterator<_CharT,_Alloc> operator+        (const _Rope_iterator<_CharT,_Alloc>& __x,         ptrdiff_t __n);template<class _CharT, class _Alloc>_Rope_iterator<_CharT,_Alloc> operator+        (ptrdiff_t __n,         const _Rope_iterator<_CharT,_Alloc>& __x);template<class _CharT, class _Alloc>bool operator==         (const _Rope_iterator<_CharT,_Alloc>& __x,         const _Rope_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>bool operator<         (const _Rope_iterator<_CharT,_Alloc>& __x,         const _Rope_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>ptrdiff_t operator-         (const _Rope_iterator<_CharT,_Alloc>& __x,         const _Rope_iterator<_CharT,_Alloc>& __y);template<class _CharT, class _Alloc>rope<_CharT,_Alloc> operator+ (const rope<_CharT,_Alloc>& __left,                               const rope<_CharT,_Alloc>& __right);        template<class _CharT, class _Alloc>rope<_CharT,_Alloc> operator+ (const rope<_CharT,_Alloc>& __left,                               const _CharT* __right);        template<class _CharT, class _Alloc>rope<_CharT,_Alloc> operator+ (const rope<_CharT,_Alloc>& __left,                               _CharT __right);        // Some helpers, so we can use power on ropes.// See below for why this isn't local to the implementation.// This uses a nonstandard refcount convention.// The result has refcount 0.template<class _CharT, class _Alloc>struct _Rope_Concat_fn       : public binary_function<rope<_CharT,_Alloc>, rope<_CharT,_Alloc>,                                     rope<_CharT,_Alloc> > {        rope<_CharT,_Alloc> operator() (const rope<_CharT,_Alloc>& __x,                                const rope<_CharT,_Alloc>& __y) {                    return __x + __y;        }};template <class _CharT, class _Alloc>inlinerope<_CharT,_Alloc>identity_element(_Rope_Concat_fn<_CharT, _Alloc>){    return rope<_CharT,_Alloc>();}//// What follows should really be local to rope.  Unfortunately,// that doesn't work, since it makes it impossible to define generic// equality on rope iterators.  According to the draft standard, the// template parameters for such an equality operator cannot be inferred// from the occurence of a member class as a parameter.// (SGI compilers in fact allow this, but the __result wouldn't be// portable.)// Similarly, some of the static member functions are member functions// only to avoid polluting the global namespace, and to circumvent// restrictions on type inference for template functions.////// The internal data structure for representing a rope.  This is// private to the implementation.  A rope is really just a pointer// to one of these.//// A few basic functions for manipulating this data structure// are members of _RopeRep.  Most of the more complex algorithms// are implemented as rope members.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区性放荡片| 欧洲一区二区三区在线| eeuss国产一区二区三区| 97超碰欧美中文字幕| 日韩一区二区三区高清免费看看| 国产日韩欧美在线一区| 伦理电影国产精品| 日韩精品欧美精品| 国产酒店精品激情| 日韩一级高清毛片| 亚洲永久免费av| av电影在线不卡| 精品久久人人做人人爱| 亚洲综合在线免费观看| caoporen国产精品视频| 久久先锋资源网| 九九视频精品免费| 欧美浪妇xxxx高跟鞋交| 一区二区三区在线观看网站| 粉嫩高潮美女一区二区三区| 2021中文字幕一区亚洲| 久久福利资源站| 日韩一区二区麻豆国产| 日韩激情av在线| 欧美日韩激情在线| 亚洲国产日韩综合久久精品| 色综合天天综合色综合av| 国产亚洲综合在线| 国产一区不卡精品| 久久久国产精品午夜一区ai换脸| 琪琪一区二区三区| 欧美成人一区二区三区片免费 | 国产91丝袜在线18| 精品精品欲导航| 麻豆91小视频| 日韩一区二区三区在线视频| 日韩高清不卡在线| 日韩欧美不卡一区| 国产一区二区在线视频| 国产亚洲欧美日韩日本| 成人在线视频一区二区| 国产精品三级电影| 成人av网站在线| 有坂深雪av一区二区精品| 日本道精品一区二区三区 | 丝袜美腿成人在线| 欧美一区二区性放荡片| 蜜臀99久久精品久久久久久软件| 91麻豆精品国产91久久久更新时间| 日韩精品久久理论片| 欧美一区二区福利视频| 久久99蜜桃精品| 中文成人综合网| 欧美在线999| 免费欧美在线视频| 国产三级精品视频| 色综合中文字幕| 午夜精品福利在线| www久久精品| 色综合一区二区| 日韩激情一二三区| 国产精品免费视频观看| 欧美日韩国产一级片| 精品一区二区三区免费观看| 中文字幕的久久| 欧美视频在线一区二区三区 | 国产无人区一区二区三区| 91同城在线观看| 中文一区在线播放| 亚洲妇熟xx妇色黄| 欧美日韩大陆在线| 韩国成人精品a∨在线观看| 久久久久久9999| 欧美亚洲综合色| 国产精品资源网站| 婷婷久久综合九色国产成人| 精品国产免费一区二区三区四区 | 国产亚洲短视频| 欧美羞羞免费网站| 国产成人综合在线观看| 午夜电影久久久| 日韩美女久久久| 久久综合久久99| 欧美日韩一区中文字幕| 成人免费观看av| 蜜臀av在线播放一区二区三区| 国产精品女主播av| 日韩免费高清av| 亚洲自拍另类综合| www.亚洲精品| 蜜桃一区二区三区四区| 亚洲美女偷拍久久| 久久久精品免费观看| 91精品国产手机| 欧美日韩亚洲综合一区二区三区| 国产成人综合在线播放| 精品一二三四在线| 青椒成人免费视频| 午夜电影网一区| 亚洲国产乱码最新视频| 亚洲欧洲精品成人久久奇米网| 欧美不卡视频一区| 91精品国产全国免费观看| 色婷婷久久一区二区三区麻豆| 国产成人av电影免费在线观看| 美腿丝袜在线亚洲一区| 日韩精品一二三| 污片在线观看一区二区| 亚洲成人www| 性做久久久久久免费观看欧美| 亚洲免费在线观看| 亚洲精品视频免费看| 亚洲视频资源在线| 亚洲免费在线观看| 亚洲在线免费播放| 亚洲mv在线观看| 丝袜美腿亚洲一区| 久久成人av少妇免费| 美女国产一区二区三区| 久久爱www久久做| 久久99精品久久久| 国产大陆a不卡| 成人听书哪个软件好| 不卡一卡二卡三乱码免费网站| 成人av免费网站| 99久久精品国产精品久久| 懂色av中文字幕一区二区三区| 成人精品小蝌蚪| 91天堂素人约啪| 在线观看免费视频综合| 欧美精品一卡二卡| 欧美成人一区二区三区片免费| 国产三级久久久| 精品一二三四区| 成人午夜激情影院| 91麻豆精品视频| 欧美精品 国产精品| 日韩欧美高清dvd碟片| 国产亚洲欧美日韩在线一区| 中文字幕一区二区三区不卡在线| 中文字幕中文字幕在线一区| 亚洲精品成人在线| 蜜桃久久精品一区二区| 国产69精品久久777的优势| 成人av资源网站| 欧美乱妇15p| 国产丝袜在线精品| 亚洲综合色婷婷| 国产一区免费电影| 色综合色狠狠天天综合色| 91麻豆精品国产自产在线 | 色www精品视频在线观看| 欧美精品1区2区| 中文字幕在线观看一区二区| 亚洲成人在线观看视频| 国产成人综合视频| 欧美撒尿777hd撒尿| 久久久99精品免费观看不卡| 日韩毛片在线免费观看| 裸体健美xxxx欧美裸体表演| 99久久久无码国产精品| 91精品国产高清一区二区三区蜜臀 | 国产在线精品一区二区不卡了 | 国产一区二区三区高清播放| 日本韩国一区二区三区视频| 欧美v日韩v国产v| 国产精品久久久久aaaa| 麻豆久久久久久久| 在线观看中文字幕不卡| 久久久www免费人成精品| 亚洲一区二区三区四区在线| 懂色av中文一区二区三区 | 国产日韩综合av| 爽好久久久欧美精品| 不卡的av电影| 精品美女在线观看| 亚洲综合精品久久| 成人免费观看视频| 精品国产三级a在线观看| 日韩国产一二三区| 欧美亚洲综合网| 一区二区国产视频| 不卡一区在线观看| 国产精品美女www爽爽爽| 久久国产精品一区二区| 欧美专区日韩专区| 亚洲精品视频在线看| 成人激情小说乱人伦| 久久久综合视频| 日韩电影免费在线观看网站| 欧美视频在线不卡| 一区二区三区免费观看| 97久久精品人人澡人人爽| 欧美国产日韩在线观看| 国产真实乱对白精彩久久| 日韩一区二区影院| 久久精品国产澳门| 精品三级在线观看| 精品在线观看视频| 久久这里只精品最新地址|