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

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

?? stl_algobase.h

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

#ifndef __STL_CONFIG_H
#include <stl_config.h>
#endif

# if ! defined (__STLPORT_CSTDDEF)
#  include <cstddef>
# endif

#if !defined (__STLPORT_DEBUG_H) && (defined  (__STL_DEBUG) || defined (__STL_ASSERTIONS))
# include <stldebug.h>
#endif

#ifndef __STLPORT_CSTRING
# include <cstring>
#endif

#ifndef __STLPORT_CLIMITS
# include <climits>
#endif

# if ! defined (__STLPORT_CSTDLIB)
#  include <cstdlib>
# endif

# ifndef __SGI_STL_INTERNAL_RELOPS
#  include <stl_relops.h>
# endif

# ifndef __TYPE_TRAITS_H
#  include <type_traits.h>
# endif

# ifndef __SGI_STL_INTERNAL_PAIR_H
#  include <stl_pair.h>
# endif

#ifndef __SGI_STL_INTERNAL_ITERATOR_BASE_H
# include <stl_iterator_base.h>
#endif

__STL_BEGIN_NAMESPACE

// swap and iter_swap

template <class _ForwardIter1, class _ForwardIter2, class _Tp>
inline void __iter_swap(_ForwardIter1 __a, _ForwardIter2 __b, _Tp*) {
  _Tp __tmp = *__a;
  *__a = *__b;
  *__b = __tmp;
}

template <class _ForwardIter1, class _ForwardIter2>
inline void iter_swap(_ForwardIter1 __a, _ForwardIter2 __b) {
  __iter_swap(__a, __b, __VALUE_TYPE(__a));
}

template <class _Tp>
inline void swap(_Tp& __a, _Tp& __b) {
  _Tp __tmp = __a;
  __a = __b;
  __b = __tmp;
}

//--------------------------------------------------
// min and max

#undef min
#undef max

# if !defined ( __MINMAX_DEFINED ) || defined (__STL_USE_OWN_NAMESPACE)
# define __MINMAX_DEFINED

template <class _Tp>
inline const _Tp& min(const _Tp& __a, const _Tp& __b) {
  return __b < __a ? __b : __a;
}

template <class _Tp>
inline const _Tp& max(const _Tp& __a, const _Tp& __b) {
  return  __a < __b ? __b : __a;
}

# ifdef __BORLANDC__
inline unsigned long min (unsigned long __a, unsigned long __b)
{
  return __b < __a ? __b : __a;
}

inline unsigned long max (unsigned long __a, unsigned long __b)
{
  return  __a < __b ? __b : __a;
}
# endif
#endif /* __MINMAX_DEFINED */

template <class _Tp, class _Compare>
inline const _Tp& min(const _Tp& __a, const _Tp& __b, _Compare __comp) {
  return __comp(__b, __a) ? __b : __a;
}

template <class _Tp, class _Compare>
inline const _Tp& max(const _Tp& __a, const _Tp& __b, _Compare __comp) {
  return __comp(__a, __b) ? __b : __a;
}

//--------------------------------------------------
// copy

// All of these auxiliary functions serve two purposes.  (1) Replace
// calls to copy with memmove whenever possible.  (Memmove, not memcpy,
// because the input and output ranges are permitted to overlap.)
// (2) If we're using random access iterators, then write the loop as
// a for loop with an explicit count.

template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
                          _OutputIter __result,
                          input_iterator_tag, _Distance*)
{
  for ( ; __first != __last; ++__result, ++__first)
    *__result = *__first;
  return __result;
}

# if defined (__STL_NONTEMPL_BASE_MATCH_BUG) 
template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
			  _OutputIter __result, forward_iterator_tag, _Distance* __dis)
{
  return __copy(__first, __last, __result, input_iterator_tag(),
		__dis);
}


template <class _InputIter, class _OutputIter, class _Distance>
inline _OutputIter __copy(_InputIter __first, _InputIter __last,
			  _OutputIter __result, bidirectional_iterator_tag, _Distance* __dis)
{
  return __copy(__first, __last, __result, input_iterator_tag(),
		__dis);
}
# endif 

template <class _RandomAccessIter, class _OutputIter, class _Distance>
inline _OutputIter
__copy(_RandomAccessIter __first, _RandomAccessIter __last,
       _OutputIter __result, random_access_iterator_tag, _Distance*)
{
  for (_Distance __n = __last - __first; __n > 0; --__n) {
    *__result = *__first;
    ++__first;
    ++__result;
  }
  return __result;
}

template <class _Tp>
inline _Tp*
__copy_trivial(const _Tp* __first, const _Tp* __last, _Tp* __result) {
  memmove((void*)__result, (void*)__first, sizeof(_Tp) * (__last - __first));
  return __result + (__last - __first);
}


#if defined(__STL_FUNCTION_TMPL_PARTIAL_ORDER)

template <class _InputIter, class _OutputIter>
inline _OutputIter __copy_aux2(_InputIter __first, _InputIter __last,
                               _OutputIter __result, __false_type) {
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

template <class _InputIter, class _OutputIter>
inline _OutputIter __copy_aux2(_InputIter __first, _InputIter __last,
                               _OutputIter __result, __true_type) {
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

# ifndef __APOGEE__
template <class _Tp>
inline _Tp* __copy_aux2(_Tp* __first, _Tp* __last, _Tp* __result,
                        __true_type) {
  return __copy_trivial(__first, __last, __result);
}
# endif

template <class _Tp>
inline _Tp* __copy_aux2(const _Tp* __first, const _Tp* __last, _Tp* __result,
                        __true_type) {
  return __copy_trivial(__first, __last, __result);
}

template <class _InputIter, class _OutputIter, class _Tp>
inline _OutputIter __copy_aux(_InputIter __first, _InputIter __last,
                              _OutputIter __result, _Tp*) {
  typedef typename __type_traits<_Tp>::has_trivial_assignment_operator
          _Trivial;
  return __copy_aux2(__first, __last, __result, _Trivial());
}

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

// Hack for compilers that don't have partial ordering of function templates
// but do have partial specialization of class templates.
#elif defined __STL_CLASS_PARTIAL_SPECIALIZATION 

template <class _InputIter, class _OutputIter, class _BoolType>
struct __copy_dispatch {
  static _OutputIter copy(_InputIter __first, _InputIter __last,
                          _OutputIter __result) {
    typedef typename iterator_traits<_InputIter>::iterator_category _Category;
    typedef typename iterator_traits<_InputIter>::difference_type _Distance;
    return __copy(__first, __last, __result, _Category(), (_Distance*) 0);
  }
};

template <class _Tp>
struct __copy_dispatch<_Tp*, _Tp*, __true_type>
{
  static _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) {
# ifdef __STL_EXPLICIT_FUNCTION_TMPL_ARGS
  	// dwa 11/19/98 -- CW bug workaround
    return __copy_trivial<_Tp>(__first, __last, __result);
# else
    return __copy_trivial(__first, __last, __result);
# endif
  }
};

template <class _Tp>
struct __copy_dispatch<const _Tp*, _Tp*, __true_type>
{
  static _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) {
    return __copy_trivial(__first, __last, __result);
  }
};

template <class _InputIter, class _OutputIter>
inline _OutputIter copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result) {
  typedef typename iterator_traits<_InputIter>::value_type _Tp;
  typedef typename __type_traits<_Tp>::has_trivial_assignment_operator
          _Trivial;
  return __copy_dispatch<_InputIter, _OutputIter, _Trivial>
    ::copy(__first, __last, __result);
}

#else /* __STL_CLASS_PARTIAL_SPECIALIZATION */

template <class _InputIter, class _OutputIter>
inline _OutputIter copy(_InputIter __first, _InputIter __last,
                        _OutputIter __result)
{
  return __copy(__first, __last, __result,
                __ITERATOR_CATEGORY(__first),
                __DISTANCE_TYPE(__first));
}

#define __SGI_STL_DECLARE_COPY_TRIVIAL(_Tp)                                \
  inline _Tp* copy(const _Tp* __first, const _Tp* __last, _Tp* __result) { \
    return (_Tp*)__copy_trivial(__first, __last, __result);                      \
  }

__SGI_STL_DECLARE_COPY_TRIVIAL(char)
# ifndef __STL_NO_SIGNED_BUILTINS
__SGI_STL_DECLARE_COPY_TRIVIAL(signed char)
# endif
__SGI_STL_DECLARE_COPY_TRIVIAL(unsigned char)
__SGI_STL_DECLARE_COPY_TRIVIAL(short)
__SGI_STL_DECLARE_COPY_TRIVIAL(unsigned short)
__SGI_STL_DECLARE_COPY_TRIVIAL(int)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
...av二区三区久久精品| 国内久久婷婷综合| 91免费国产视频网站| 亚洲丝袜另类动漫二区| 色综合av在线| 亚洲第一激情av| 久久综合精品国产一区二区三区 | proumb性欧美在线观看| 亚洲色图欧美在线| 欧美精品少妇一区二区三区| 久久精品72免费观看| 国产日韩精品一区| 欧美在线免费观看亚洲| 久久国产人妖系列| 中文字幕一区二区视频| 欧美精品亚洲二区| 国产成人av电影| 亚洲午夜激情网页| 久久在线观看免费| 在线影院国内精品| 国产综合色精品一区二区三区| 国产亚洲成aⅴ人片在线观看| 色噜噜夜夜夜综合网| 蜜臀精品久久久久久蜜臀| 国产人妖乱国产精品人妖| 欧美日韩一区国产| 国产精品系列在线观看| 亚洲国产欧美在线| 国产日韩av一区二区| 不卡的av网站| 奇米精品一区二区三区四区| 成人免费在线视频| 日韩情涩欧美日韩视频| 99re66热这里只有精品3直播 | a级精品国产片在线观看| 亚洲444eee在线观看| 久久伊99综合婷婷久久伊| 色悠悠久久综合| 国产精品小仙女| 日韩综合小视频| 亚洲蜜臀av乱码久久精品蜜桃| 欧美一卡2卡3卡4卡| 91国偷自产一区二区三区观看| 狠狠狠色丁香婷婷综合久久五月| 亚洲电影在线免费观看| 中文字幕不卡三区| 日韩一区国产二区欧美三区| 97国产一区二区| 国产激情一区二区三区四区| 美女视频一区二区| 亚洲国产wwwccc36天堂| 国产精品久久久久久久岛一牛影视| 日韩丝袜美女视频| 欧美日韩另类一区| 91视频在线观看免费| 国产成人鲁色资源国产91色综| 日韩黄色免费网站| 亚洲国产乱码最新视频| 成人免费小视频| 一区二区三区视频在线看| 欧美激情一区不卡| 精品日韩欧美在线| 欧美一区二区三区成人| 在线免费观看日韩欧美| 色婷婷久久综合| 日本韩国欧美一区二区三区| 丁香五精品蜜臀久久久久99网站| 久久成人羞羞网站| 人人狠狠综合久久亚洲| 男人的j进女人的j一区| 免费的国产精品| 看电影不卡的网站| 韩国视频一区二区| 国产成人亚洲精品狼色在线| 国产精品一区二区三区乱码 | 国产精品午夜在线| 国产日韩欧美精品在线| 久久久精品黄色| 国产精品女主播av| 成人欧美一区二区三区黑人麻豆 | 精品日韩在线一区| 欧美成人vr18sexvr| 欧美videos大乳护士334| 精品欧美一区二区久久| 国产拍揄自揄精品视频麻豆| 国产精品麻豆欧美日韩ww| 亚洲三级在线观看| 午夜激情一区二区三区| 青青草97国产精品免费观看无弹窗版| 日韩有码一区二区三区| 精品一区免费av| 国产成人免费高清| 一本一本久久a久久精品综合麻豆| 色94色欧美sute亚洲线路二 | 亚洲永久精品大片| 美洲天堂一区二卡三卡四卡视频| 麻豆视频观看网址久久| 国产不卡免费视频| 色狠狠桃花综合| 欧美一区二区三区不卡| 国产亚洲精久久久久久| 亚洲免费在线电影| 蜜桃av一区二区在线观看| 国产成人免费xxxxxxxx| 在线视频一区二区三区| 91精品国产综合久久福利| 久久精品欧美一区二区三区不卡| 国产精品少妇自拍| 婷婷开心激情综合| 国产综合久久久久影院| 色先锋久久av资源部| 日韩欧美中文一区| 国产精品久久久久久户外露出 | 一区二区三区中文在线| 日本午夜精品视频在线观看| 国产91精品一区二区麻豆网站 | 欧美大片一区二区| 国产精品超碰97尤物18| 男人操女人的视频在线观看欧美| 99久久精品免费| 日韩精品一区二区三区视频播放 | 精品福利在线导航| 亚洲五码中文字幕| 国产91高潮流白浆在线麻豆| 欧美美女一区二区在线观看| 欧美国产国产综合| 免播放器亚洲一区| 91福利在线导航| 国产亚洲欧洲997久久综合| 亚洲成人av电影在线| 国产99久久久国产精品潘金| 这里只有精品免费| 亚洲狼人国产精品| 高清不卡在线观看av| 欧美va亚洲va| 午夜国产精品影院在线观看| 99视频精品在线| 久久久久久久网| 麻豆成人综合网| 欧美久久久久久久久中文字幕| 亚洲人被黑人高潮完整版| 国产宾馆实践打屁股91| 精品国产欧美一区二区| 日韩激情视频网站| 欧美三区免费完整视频在线观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 99久久精品国产网站| 久久蜜桃av一区精品变态类天堂| 日韩vs国产vs欧美| 欧美三级蜜桃2在线观看| 亚洲激情六月丁香| 91小视频免费看| 中文字幕一区二区三区精华液 | 欧美性极品少妇| 樱花影视一区二区| 色综合久久久久久久久| 国产精品国产三级国产有无不卡| 国产91精品入口| 国产欧美精品在线观看| 国产在线精品视频| 久久综合国产精品| 国产综合久久久久影院| 欧美精品一区二区高清在线观看| 久久精品国产77777蜜臀| 日韩美女在线视频| 精品一区二区久久久| 精品久久久久久久人人人人传媒| 美女网站一区二区| 26uuu亚洲综合色欧美| 国产精品夜夜嗨| 国产人成亚洲第一网站在线播放| 成人高清视频免费观看| 在线一区二区三区四区五区| 国产精品美日韩| 高清日韩电视剧大全免费| 久久九九99视频| 丁香婷婷综合激情五月色| 欧美经典一区二区| 欧美日韩综合在线免费观看| 26uuu国产一区二区三区| 国内外成人在线| 中文字幕精品在线不卡| 色综合天天综合给合国产| 亚洲精品国产精品乱码不99| 91久久精品一区二区| 日韩成人免费电影| 精品国产乱码久久久久久老虎 | 五月天久久比比资源色| 日韩午夜激情视频| 丁香网亚洲国际| 洋洋av久久久久久久一区| 欧美一区日韩一区| 国产一区二区久久| 亚洲九九爱视频| 91精品国产综合久久国产大片 | 99久久婷婷国产综合精品| 一区二区三区av电影| 欧美videofree性高清杂交| 成人aa视频在线观看| 视频一区二区不卡|