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

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

?? stl_algo.h

?? 粗慥集成算法集合 ,并有詳細的文檔資料和測試數據處
?? H
?? 第 1 頁 / 共 3 頁
字號:
/*
 *
 * 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_ALGO_H
#define __SGI_STL_INTERNAL_ALGO_H


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

# ifndef __SGI_STL_INTERNAL_ALGOBASE_H
#  include <stl_algobase.h>
# endif

# ifndef __SGI_STL_INTERNAL_TEMPBUF_H
#  include <stl_tempbuf.h>
# endif

# ifndef __SGI_STL_INTERNAL_HEAP_H
#  include <stl_heap.h>
# endif

# ifndef __SGI_STL_INTERNAL_ITERATOR_H
#  include <stl_iterator.h>
# endif

__STL_BEGIN_NAMESPACE

// for_each.  Apply a function to every element of a range.
template <class _InputIter, class _Function>
_Function for_each(_InputIter __first, _InputIter __last, _Function __f);

// find and find_if.

template <class _InputIter, class _Tp>
inline _InputIter find(_InputIter __first, _InputIter __last,
                       const _Tp& __val,
                       input_iterator_tag)
{
  __stl_debug_check(__check_range(__first, __last));
  while (__first != __last && *__first != __val)
    ++__first;
  return __first;
}

template <class _InputIter, class _Predicate>
inline _InputIter find_if(_InputIter __first, __STL_MPW_EXTRA_CONST _InputIter __last,
                          _Predicate __pred,
                          input_iterator_tag)
{
  __stl_debug_check(__check_range(__first, __last));
  while (__first != __last && !__pred(*__first))
    ++__first;
  return __first;
}

#ifdef __STL_CLASS_PARTIAL_SPECIALIZATION

template <class _RandomAccessIter, class _Tp>
_RandomAccessIter find(_RandomAccessIter __first, _RandomAccessIter __last,
                       const _Tp& __val,
                       random_access_iterator_tag);

template <class _RandomAccessIter, class _Predicate>
_RandomAccessIter find_if(_RandomAccessIter __first, _RandomAccessIter __last,
                          _Predicate __pred,
                          random_access_iterator_tag);

#endif /* __STL_CLASS_PARTIAL_SPECIALIZATION */

// fbp : without partial spec, we essentially have one variant for those.
template <class _InputIter, class _Tp>
inline _InputIter find(_InputIter __first, _InputIter __last,
                       const _Tp& __val)
{
# if defined (__STL_CLASS_PARTIAL_SPECIALIZATION)
  return find(__first, __last, __val, __ITERATOR_CATEGORY(__first));
# else
  return find(__first, __last, __val, input_iterator_tag());
# endif /* __STL_CLASS_PARTIAL_SPECIALIZATION */
}

template <class _InputIter, class _Predicate>
inline _InputIter find_if(_InputIter __first, _InputIter __last,
                          _Predicate __pred) {
# if defined (__STL_CLASS_PARTIAL_SPECIALIZATION)
  return find_if(__first, __last, __pred, __ITERATOR_CATEGORY(__first));
# else
  return find_if(__first, __last, __pred, input_iterator_tag());
# endif /* __STL_CLASS_PARTIAL_SPECIALIZATION */
}

// adjacent_find.

template <class _ForwardIter>
_ForwardIter adjacent_find(_ForwardIter __first, _ForwardIter __last);
template <class _ForwardIter, class _BinaryPredicate>
_ForwardIter adjacent_find(_ForwardIter __first, _ForwardIter __last,
                           _BinaryPredicate __binary_pred);

// count and count_if.  There are two version of each, one whose return type
// type is void and one (present only if we have partial specialization)
// whose return type is iterator_traits<_InputIter>::difference_type.  The
// C++ standard only has the latter version, but the former, which was present
// in the HP STL, is retained for backward compatibility.

template <class _InputIter, class _Tp, class _Size>
void count(_InputIter __first, _InputIter __last, const _Tp& __value,
           _Size& __n);
template <class _InputIter, class _Predicate, class _Size>
void count_if(_InputIter __first, _InputIter __last, _Predicate __pred,
              _Size& __n);


template <class _InputIter, class _Tp>
__STL_DIFFERENCE_TYPE(_InputIter)
count(_InputIter __first, _InputIter __last, const _Tp& __value);

template <class _InputIter, class _Predicate>
__STL_DIFFERENCE_TYPE(_InputIter)
count_if(_InputIter __first, _InputIter __last, _Predicate __pred);

// search.

template <class _ForwardIter1, class _ForwardIter2>
_ForwardIter1 search(_ForwardIter1 __first1, _ForwardIter1 __last1,
                     _ForwardIter2 __first2, _ForwardIter2 __last2);
template <class _ForwardIter1, class _ForwardIter2, class _BinaryPred>
_ForwardIter1 search(_ForwardIter1 __first1, _ForwardIter1 __last1,
                     _ForwardIter2 __first2, _ForwardIter2 __last2,
                     _BinaryPred  __predicate);


// search_n.  Search for __count consecutive copies of __val.

template <class _ForwardIter, class _Integer, class _Tp>
_ForwardIter search_n(_ForwardIter __first, _ForwardIter __last,
                      _Integer __count, const _Tp& __val);

template <class _ForwardIter, class _Integer, class _Tp, class _BinaryPred>
_ForwardIter search_n(_ForwardIter __first, _ForwardIter __last,
                      _Integer __count, const _Tp& __val,
                      _BinaryPred __binary_pred);



// swap_ranges

template <class _ForwardIter1, class _ForwardIter2>
_ForwardIter2 swap_ranges(_ForwardIter1 __first1, _ForwardIter1 __last1,
                          _ForwardIter2 __first2);


// transform
template <class _InputIter, class _OutputIter, class _UnaryOperation>
_OutputIter transform(_InputIter __first, _InputIter __last,
                      _OutputIter __result, _UnaryOperation __opr);

template <class _InputIter1, class _InputIter2, class _OutputIter,
          class _BinaryOperation>
_OutputIter transform(_InputIter1 __first1, _InputIter1 __last1,
                      _InputIter2 __first2, _OutputIter __result,
                      _BinaryOperation __binary_op);

// replace, replace_if, replace_copy, replace_copy_if

template <class _ForwardIter, class _Tp>
void replace(_ForwardIter __first, _ForwardIter __last,
             const _Tp& __old_value, const _Tp& __new_value);
template <class _ForwardIter, class _Predicate, class _Tp>
void replace_if(_ForwardIter __first, _ForwardIter __last,
                _Predicate __pred, const _Tp& __new_value);

template <class _InputIter, class _OutputIter, class _Tp>
_OutputIter replace_copy(_InputIter __first, _InputIter __last,
                         _OutputIter __result,
                         const _Tp& __old_value, const _Tp& __new_value);
template <class Iterator, class _OutputIter, class _Predicate, class _Tp>
_OutputIter replace_copy_if(Iterator __first, Iterator __last,
                            _OutputIter __result,
                            _Predicate __pred, const _Tp& __new_value);


// generate and generate_n

template <class _ForwardIter, class _Generator>
void generate(_ForwardIter __first, _ForwardIter __last, _Generator __gen);

template <class _OutputIter, class _Size, class _Generator>
_OutputIter generate_n(_OutputIter __first, _Size __n, _Generator __gen);

// remove, remove_if, remove_copy, remove_copy_if

template <class _InputIter, class _OutputIter, class _Tp>
_OutputIter remove_copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result, const _Tp& __value);

template <class _InputIter, class _OutputIter, class _Predicate>
_OutputIter remove_copy_if(_InputIter __first, _InputIter __last,
                           _OutputIter __result, _Predicate __pred);

template <class _ForwardIter, class _Tp>
_ForwardIter remove(_ForwardIter __first, _ForwardIter __last,
		       const _Tp& __value);

template <class _ForwardIter, class _Predicate>
_ForwardIter remove_if(_ForwardIter __first, _ForwardIter __last,
			  _Predicate __pred);

// unique and unique_copy

template <class _InputIter, class _OutputIter, class _Tp>
_OutputIter __unique_copy(_InputIter __first, _InputIter __last,
                          _OutputIter __result, _Tp*);


template <class _InputIter, class _OutputIter>
inline _OutputIter __unique_copy(_InputIter __first, _InputIter __last,
                                 _OutputIter __result, 
                                 output_iterator_tag) {
  return __unique_copy(__first, __last, __result, __VALUE_TYPE(__first));
}

template <class _InputIter, class _ForwardIter>
_ForwardIter __unique_copy(_InputIter __first, _InputIter __last,
                           _ForwardIter __result, forward_iterator_tag);

# if defined (__STL_NONTEMPL_BASE_MATCH_BUG)
template <class _InputIter, class _ForwardIter>
inline 
_ForwardIter __unique_copy(_InputIter __first, _InputIter __last,
                           _ForwardIter __result, bidirectional_iterator_tag) {
  return __unique_copy(__first, __last, __result, forward_iterator_tag());
}
template <class _InputIter, class _ForwardIter>
inline
_ForwardIter __unique_copy(_InputIter __first, _InputIter __last,
                           _ForwardIter __result, random_access_iterator_tag) {
  return __unique_copy(__first, __last, __result, forward_iterator_tag());
}
# endif /* __STL_NONTEMPL_BASE_MATCH_BUG */

template <class _InputIter, class _OutputIter>
inline _OutputIter unique_copy(_InputIter __first, _InputIter __last,
                               _OutputIter __result) {
  __stl_debug_check(__check_range(__first, __last));
  if (__first == __last) return __result;
  return __unique_copy(__first, __last, __result,
                       __ITERATOR_CATEGORY(__result));
}

template <class InputIterator, class OutputIterator, class BinaryPredicate,
					    class _Tp>
OutputIterator __unique_copy(InputIterator first, InputIterator last,
                             OutputIterator result,
                             BinaryPredicate binary_pred, _Tp*);


template <class _InputIter, class _OutputIter, class _BinaryPredicate>
inline _OutputIter __unique_copy(_InputIter __first, _InputIter __last,
                                 _OutputIter __result,
                                 _BinaryPredicate __binary_pred,
                                 output_iterator_tag) {
  return __unique_copy(__first, __last, __result, __binary_pred,
                       __VALUE_TYPE(__first));
}

template <class _InputIter, class _ForwardIter, class _BinaryPredicate>
_ForwardIter __unique_copy(_InputIter __first, _InputIter __last,
                           _ForwardIter __result, 
                           _BinaryPredicate __binary_pred,
                           forward_iterator_tag);

# if defined (__STL_NONTEMPL_BASE_MATCH_BUG)
template <class InputIterator, class BidirectionalIterator,
				class BinaryPredicate>
inline BidirectionalIterator __unique_copy(InputIterator first, 
					   InputIterator last,
			            	   BidirectionalIterator result, 
					   BinaryPredicate binary_pred,
				    	   bidirectional_iterator_tag) {
  return __unique_copy(first, last, result, binary_pred,
		       forward_iterator_tag());
}

template <class InputIterator, class RandomAccessIterator,
					     class BinaryPredicate>
inline RandomAccessIterator __unique_copy(InputIterator first, 
					  InputIterator last,
			           	  RandomAccessIterator result, 
					  BinaryPredicate binary_pred,
				   	  random_access_iterator_tag) {
  return __unique_copy(first, last, result, binary_pred, 
		       forward_iterator_tag());
}
# endif /* __STL_NONTEMPL_BASE_MATCH_BUG */

template <class _InputIter, class _OutputIter, class _BinaryPredicate>
inline _OutputIter unique_copy(_InputIter __first, _InputIter __last,
                               _OutputIter __result,
                               _BinaryPredicate __binary_pred) {
  __stl_debug_check(__check_range(__first, __last));
  if (__first == __last) return __result;
  return __unique_copy(__first, __last, __result, __binary_pred,
                       __ITERATOR_CATEGORY(__result));
}

template <class _ForwardIter>
inline _ForwardIter unique(_ForwardIter __first, _ForwardIter __last) {
  __first = adjacent_find(__first, __last);
  return unique_copy(__first, __last, __first);
}

template <class _ForwardIter, class _BinaryPredicate>
inline _ForwardIter unique(_ForwardIter __first, _ForwardIter __last,
                    _BinaryPredicate __binary_pred) {
  __first = adjacent_find(__first, __last, __binary_pred);
  return unique_copy(__first, __last, __first, __binary_pred);
}

// reverse and reverse_copy, and their auxiliary functions

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品免费在线观看| 国产欧美精品国产国产专区| 日韩三级av在线播放| 日本一区二区三区国色天香 | 欧美电影免费提供在线观看| √…a在线天堂一区| 国产一区二区成人久久免费影院| 欧美日韩综合一区| 日韩伦理电影网| 国产成人精品亚洲777人妖 | 美女视频黄 久久| 色综合久久久久综合体 | 日韩美一区二区三区| 亚洲一区二区成人在线观看| 波多野结衣亚洲| 国产亚洲一二三区| 九九国产精品视频| 日韩欧美不卡一区| 五月综合激情婷婷六月色窝| 色激情天天射综合网| 1024国产精品| 91视频在线看| 国产精品成人免费| 99精品久久只有精品| 国产精品传媒在线| 99久久精品国产毛片| 日韩一区在线免费观看| a级精品国产片在线观看| 国产精品国产成人国产三级 | 中文字幕亚洲在| 成人福利视频网站| 国产精品视频麻豆| 成人免费毛片嘿嘿连载视频| 国产精品久久久久久福利一牛影视 | 豆国产96在线|亚洲| 国产午夜一区二区三区| 成人免费高清在线观看| 国产精品素人视频| www.av亚洲| 亚洲欧美日韩国产一区二区三区| 色综合久久久久网| 一区二区三区在线免费视频| 欧美午夜电影一区| 亚洲成人av一区| 日韩欧美中文字幕一区| 国产一区二区不卡| 亚洲人成亚洲人成在线观看图片 | 日韩一区二区三区免费看 | 久久久亚洲精品一区二区三区| 国产成人99久久亚洲综合精品| 中文字幕av一区二区三区免费看 | 久久久久青草大香线综合精品| 成人自拍视频在线观看| 一区二区三区四区中文字幕| 欧美视频在线播放| 精品中文字幕一区二区| 亚洲欧美自拍偷拍| 91麻豆精品国产自产在线| 久久国产精品99精品国产| 国产精品网站在线观看| 欧美理论片在线| 国产麻豆欧美日韩一区| 一级女性全黄久久生活片免费| 在线播放日韩导航| 成人午夜精品在线| 丝袜诱惑亚洲看片 | 精品国产成人在线影院| eeuss影院一区二区三区| 亚洲成人777| 久久精品综合网| 欧美午夜电影一区| 国产盗摄精品一区二区三区在线 | 亚洲欧美在线观看| 日韩三级免费观看| 日本福利一区二区| 国产精品夜夜嗨| 亚洲国产三级在线| 国产精品―色哟哟| 日韩欧美激情一区| 欧美色综合网站| av色综合久久天堂av综合| 青青草精品视频| 一区二区三区四区五区视频在线观看| 这里只有精品电影| 欧美天天综合网| youjizz久久| 国产一区在线精品| 奇米一区二区三区| 亚洲电影一级黄| 亚洲免费av网站| 国产亚洲欧美色| 日韩久久久久久| 欧美日韩国产精选| 欧美主播一区二区三区美女| 国产**成人网毛片九色| 国产一区二区三区免费在线观看| 天堂精品中文字幕在线| 欧美日韩一区三区四区| 91国产福利在线| 成人免费视频播放| aaa国产一区| 色综合一个色综合| 肉色丝袜一区二区| 午夜精品123| 亚洲国产精品久久人人爱| 国产精品福利影院| 国产精品福利一区二区| 中文字幕 久热精品 视频在线| 26uuu精品一区二区| 欧美一二三区在线| 欧美成人免费网站| 日韩精品一区二区三区在线| 日韩午夜在线播放| 日韩精品一区二| 337p粉嫩大胆色噜噜噜噜亚洲| 日韩免费观看高清完整版| 欧美成人三级电影在线| 日韩欧美另类在线| 精品欧美一区二区久久| 久久九九全国免费| 欧美国产国产综合| 中文字幕一区二区视频| 亚洲精品视频在线看| 亚洲一区在线播放| 天天操天天色综合| 精品国产一区二区三区av性色| 亚洲色图在线看| 国产精品三级电影| 亚洲精品成人精品456| 亚洲欧美日韩国产手机在线| 亚洲自拍另类综合| 一区二区免费在线播放| 琪琪久久久久日韩精品| 黄一区二区三区| 99精品久久只有精品| 精品视频在线看| xvideos.蜜桃一区二区| 亚洲欧洲www| 五月综合激情日本mⅴ| 精品无码三级在线观看视频| 粉嫩欧美一区二区三区高清影视| 99久久综合精品| 欧美高清视频www夜色资源网| 日韩欧美aaaaaa| 亚洲欧美日韩在线| 日本不卡不码高清免费观看| 国产999精品久久| 欧美日韩色综合| 国产三级精品在线| 亚洲综合色噜噜狠狠| 激情综合色播五月| 色av综合在线| 久久久久久免费网| 亚洲一区二区3| 国产大片一区二区| 91精品国产综合久久婷婷香蕉 | 中文字幕字幕中文在线中不卡视频| 一区二区三区四区激情| 久久精品国产澳门| 色偷偷88欧美精品久久久| 欧美www视频| 亚洲国产综合在线| 成人白浆超碰人人人人| 91麻豆精品国产无毒不卡在线观看| 国产三级精品视频| 久久99国产精品免费网站| 色狠狠av一区二区三区| 欧美经典三级视频一区二区三区| 天堂影院一区二区| 91论坛在线播放| 国产欧美一区二区精品性| 免费在线观看一区二区三区| 91蜜桃传媒精品久久久一区二区 | 日韩欧美一二三| 亚洲精品一二三区| 成人一区二区三区在线观看 | 久久成人羞羞网站| 欧美日韩精品欧美日韩精品| 亚洲丝袜自拍清纯另类| 国产精品一区一区三区| 欧美mv日韩mv国产| 日韩精品一二三区| 欧美三级资源在线| 一区二区三区在线观看国产| 成人97人人超碰人人99| 国产亚洲人成网站| 国产乱码一区二区三区| 欧美大片在线观看| 六月婷婷色综合| 日韩一区二区三区高清免费看看| 五月婷婷欧美视频| 这里只有精品免费| 日韩影视精彩在线| 欧美一卡二卡在线观看| 美女一区二区视频| 日韩欧美一级在线播放| 裸体健美xxxx欧美裸体表演| 欧美成人video| 国产真实乱子伦精品视频| 久久嫩草精品久久久精品|