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

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

?? algorithm

?? realview22.rar
??
?? 第 1 頁 / 共 4 頁
字號:
// -*- C++ -*-
/***************************************************************************
 *
 * algorithm - declarations and inline definitions of the Standard
 *              Library algorithms
 *
 * $Id: algorithm,v 1.1.1.1 2002/01/10 17:38:29 vkorstan Exp $
 *
 ***************************************************************************
 *
 * 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) 1994-2001 Rogue Wave Software, Inc.  All Rights Reserved.
 *
 * This computer software is owned by Rogue Wave Software, Inc. and is
 * protected by U.S. copyright laws and other laws and by international
 * treaties.  This computer software is furnished by Rogue Wave Software,
 * Inc. pursuant to a written license agreement and may be used, copied,
 * transmitted, and stored only in accordance with the terms of such
 * license and with the inclusion of the above copyright notice.  This
 * computer software or any other copies thereof may not be provided or
 * otherwise made available to any other person.
 *
 * U.S. Government Restricted Rights.  This computer software is provided
 * with Restricted Rights.  Use, duplication, or disclosure by the
 * Government is subject to restrictions as set forth in subparagraph (c)
 * (1) (ii) of The Rights in Technical Data and Computer Software clause
 * at DFARS 252.227-7013 or subparagraphs (c) (1) and (2) of the
 * Commercial Computer Software--Restricted Rights at 48 CFR 52.227-19,
 * as applicable.  Manufacturer is Rogue Wave Software, Inc., 5500
 * Flatiron Parkway, Boulder, Colorado 80301 USA.
 *
 **************************************************************************/

#ifndef _RWSTD_ALGORITHM_INCLUDED
#define _RWSTD_ALGORITHM_INCLUDED

#include <memory>
#include <utility>

#include <rw/_iterbase.h>
#include <rw/_algobase.h>
#include <rw/_defs.h>

#include _RWSTD_CSTDLIB


#ifdef _INLINE_RECURSIVE
#  define _INLINE inline
#else
#  define _INLINE
#endif


_RWSTD_NAMESPACE_BEGIN (std)


// 25.1 - Non-modifying sequence operations [lib.alg.nonmodifying]

// 25.1.1 - For Each [lib.alg.foreach]
template <class _InputIter, class _Function>
inline _Function
for_each (_InputIter __first, _InputIter __last, _Function __f)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    for (;__first != __last; ++__first)
        __f (*__first);
    return __f;
}


// 25.1.2 - Find [lib.alg.find]

template <class _InputIter, class _TypeT>
inline _InputIter
find (_InputIter __first, _InputIter __last, const _TypeT& __value)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    while (!(__first == __last) && !(*__first == __value)) 
        ++__first;
    return __first;
}


template <class _InputIter, class _Predicate>
inline _InputIter
find_if (_InputIter __first, _InputIter __last, _Predicate __pred)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    while (__first != __last && !__pred (*__first))
        ++__first;
    return __first;
}


// helpers to work around the lack of iterator_traits
template <class _FwdIter1, class _FwdIter2, class _Distance>
_FwdIter1 __find_end (_FwdIter1, _FwdIter1, _FwdIter2, _FwdIter2, _Distance*);

template <class _FwdIter1, class _FwdIter2, 
          class _BinaryPredicate, class _Distance>
_FwdIter1 __find_end (_FwdIter1, _FwdIter1, _FwdIter2, _FwdIter2,
                      _BinaryPredicate, _Distance*);


// 25.1.3 - Find End [lib.alg.find.end]

template <class _FwdIter1, class _FwdIter2>
inline _FwdIter1 find_end (_FwdIter1 __first1, _FwdIter1 __last1,
                           _FwdIter2 __first2, _FwdIter2 __last2)
{
    _RWSTD_ASSERT_RANGE (__first1, __last1);
    _RWSTD_ASSERT_RANGE (__first2, __last2);

    return __find_end (__first1, __last1, __first2, __last2,
                       _RWSTD_DIFFERENCE_TYPE (_FwdIter1));
}


template <class _FwdIter1, class _FwdIter2, class _BinaryPredicate>
_FwdIter1 find_end (_FwdIter1 __first1, _FwdIter1 __last1,
                    _FwdIter2 __first2, _FwdIter2 __last2,
                    _BinaryPredicate __pred)
{
    _RWSTD_ASSERT_RANGE (__first1, __last1);
    _RWSTD_ASSERT_RANGE (__first2, __last2);

    return __find_end (__first1,__last1,__first2,__last2,
                       __pred, _RWSTD_DIFFERENCE_TYPE (_FwdIter1));
}

// 25.1.4 - Find First [lib.alg.find.first.of]

template <class _FwdIter1, class _FwdIter2>
_FwdIter1 find_first_of (_FwdIter1, _FwdIter1, _FwdIter2, _FwdIter2);

template <class _FwdIter1, class _FwdIter2, class _BinaryPred>
_FwdIter1 find_first_of (_FwdIter1,_FwdIter1, _FwdIter2, _FwdIter2,
                         _BinaryPred);


// 25.1.5 - Adjacent Find [lib.alg.adjacent.find]

template <class _FwdIter>
_FwdIter adjacent_find (_FwdIter, _FwdIter);

template <class _FwdIter, class _BinaryPredicate>
_FwdIter adjacent_find (_FwdIter, _FwdIter, _BinaryPredicate);


#ifndef _RWSTD_NO_CLASS_PARTIAL_SPEC

// 25.1.6 - Count [lib.alg.count]

template <class _InputIter, class _TypeT>
inline _TYPENAME iterator_traits<_InputIter>::difference_type
count (_InputIter __first, _InputIter __last, const _TypeT& __value)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    _TYPENAME iterator_traits<_InputIter>::difference_type __n = 0;
    for (; __first != __last; ++__first)
        if (*__first == __value)
            ++__n;
    return __n;
}


template <class _InputIter, class _Predicate>
inline _TYPENAME iterator_traits<_InputIter>::difference_type
count_if (_InputIter __first, _InputIter __last, _Predicate __pred)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    _TYPENAME iterator_traits<_InputIter>::difference_type __n = 0;
    for (;__first != __last; ++__first)
        if (__pred (*__first))
            ++__n;
    return __n;
}

#endif   // _RWSTD_NO_CLASS_PARTIAL_SPEC


// provided as a backward-compatibility extension (or as a workaround)
#if    !defined (_RWSTD_NO_EXT_VOID_COUNT)    \
    || defined (_RWSTD_NO_CLASS_PARTIAL_SPEC)

template <class _InputIter, class _TypeT, class _Size>
inline void count (_InputIter __first, _InputIter __last,
                   const _TypeT& __value, _Size& __n)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    for (;__first != __last;++__first) 
        if (*__first == __value)
            ++__n;
}


template <class _InputIter, class _Predicate, class _Size>
inline void count_if (_InputIter __first, _InputIter __last,
                      _Predicate __pred, _Size& __n)
{
    _RWSTD_ASSERT_RANGE (__first, __last);

    for (;__first != __last;++__first)
        if (__pred (*__first))
            ++__n;
}

#endif   // !_RWSTD_NO_EXT_VOID_COUNT || _RWSTD_NO_CLASS_PARTIAL_SPEC


// 25.1.7 - Mismatch [lib.mismatch]
// 25.1.8 - Equal [lib.alg.equal]
// defined in <rw/_algobase.h>


// helpers to work around the lack of iterator_traits
template <class _FwdIter1, class _FwdIter2, class _Distance1, class _Distance2>
_FwdIter1 __search (_FwdIter1, _FwdIter1, _FwdIter2, _FwdIter2,
                    _Distance1*, _Distance2*);

template <class _FwdIter1, class _FwdIter2,
          class _BinaryPredicate, class Distance1, class Distance2>
_FwdIter1 __search (_FwdIter1, _FwdIter1, _FwdIter2, _FwdIter2,
                    _BinaryPredicate, Distance1*, Distance2*);

// 25.1.9 - Search [lib.alg.search]

// 25.1.9, p1
template <class _FwdIter1, class _FwdIter2>
inline _FwdIter1 search (_FwdIter1 __first1, _FwdIter1 __last1,
                         _FwdIter2 __first2, _FwdIter2 __last2)
{
    return __search (__first1, __last1, __first2, __last2,
                     _RWSTD_DIFFERENCE_TYPE (_FwdIter1),
                     _RWSTD_DIFFERENCE_TYPE (_FwdIter2));
}


template <class _FwdIter1, class _FwdIter2, class _BinaryPredicate>
inline _FwdIter1 search (_FwdIter1 __first1,_FwdIter1 __last1,
                         _FwdIter2 __first2,_FwdIter2 __last2,
                         _BinaryPredicate __pred)
{
    return __search (__first1, __last1, __first2, __last2, __pred,
                     _RWSTD_DIFFERENCE_TYPE (_FwdIter1),
                     _RWSTD_DIFFERENCE_TYPE (_FwdIter2));
}


// helper to work around the lack of iterator_traits
template <class _FwdIter, class _Distance, class _Size, class _TypeT>
_FwdIter __search_n (_FwdIter, _FwdIter, _Distance*, _Size, const _TypeT&);
 
template <class _FwdIter, class _Distance, class _Size, class _TypeT,
          class _BinaryPredicate>
_FwdIter __search_n (_FwdIter, _FwdIter, _Distance*, _Size,
                     const _TypeT&, _BinaryPredicate);

// 25.1.9, p4
template <class _FwdIter, class _Size, class _TypeT>
inline _FwdIter search_n (_FwdIter __first, _FwdIter __last,
                          _Size __count, const _TypeT& __value)
{
    if (__count) 
        return __search_n (__first, __last, _RWSTD_DIFFERENCE_TYPE (_FwdIter),
                           __count, __value);
    return __first;
}


template <class _FwdIter, class _Size, class _TypeT, class _BinaryPredicate>
inline _FwdIter search_n (_FwdIter __first, _FwdIter __last,
                          _Size __count, const _TypeT& __value,
                          _BinaryPredicate __pred)
{
    if (__count) 
        return __search_n (__first, __last,
                           _RWSTD_DIFFERENCE_TYPE (_FwdIter),
                           __count,__value, __pred);
    return __first;
}


// 25.2 - Mutating sequence operations [lib.alg.modifying,operations]

// 25.2.1 - Copy [lib.alg.copy]
// 25.2.2, p1 swap
// defined in <rw/_algobase.h>

// 25.2.2, p3
template <class _FwdIter1, class _FwdIter2>
_FwdIter2 swap_ranges (_FwdIter1, _FwdIter1, _FwdIter2);

// 25.2.3 - Transform [lib.alg.transform]
template <class _InputIter, class _OutputIter, class _UnaryOperation>
_OutputIter transform (_InputIter, _InputIter, _OutputIter, _UnaryOperation);

template <class _InputIter1, class _InputIter2, class _OutputIter,
          class _BinaryOperation>
_OutputIter transform (_InputIter1, _InputIter1, _InputIter2, _OutputIter,
                       _BinaryOperation);

// 25.2.4 - Replace [lib.alg.replace]
template <class _FwdIter, class _TypeT>
void replace (_FwdIter, _FwdIter, const _TypeT&, const _TypeT&);

template <class _FwdIter, class _Predicate, class _TypeT>
void replace_if (_FwdIter, _FwdIter, _Predicate, const _TypeT&);

template <class _InputIter, class _OutputIter, class _TypeT>
_OutputIter replace_copy (_InputIter, _InputIter, _OutputIter,
                          const _TypeT&, const _TypeT&);

template <class _Iter, class _OutputIter, class _Predicate, class _TypeT>
_OutputIter replace_copy_if (_Iter, _Iter, _OutputIter, _Predicate,
                             const _TypeT&);

// 25.2.5 - Fill [lib.alg.fill]
// defined in <rw/_algobase.h>

// 25.2.6 - Generate [lib.alg.generate]

template <class _FwdIter, class _Generator>
void generate (_FwdIter, _FwdIter, _Generator);

template <class _OutputIter, class _Size, class _Generator>
void generate_n (_OutputIter, _Size, _Generator);

// 25.2.7 - Remove [lib.alg.remove]
template <class _InputIter, class _OutputIter, class _TypeT>
_OutputIter remove_copy (_InputIter, _InputIter, _OutputIter,
                         const _TypeT&);

template <class _InputIter, class _OutputIter, class _Predicate>
_OutputIter remove_copy_if (_InputIter, _InputIter, _OutputIter, _Predicate);


template <class _FwdIter, class _TypeT>
inline _FwdIter
remove (_FwdIter __first, _FwdIter __last, const _TypeT& __value)
{
    __first = _STD::find (__first, __last, __value);
    _FwdIter __next = __first;
    return __first == __last ?
        __first : _STD::remove_copy (++__next, __last, __first, __value);
}


template <class _FwdIter, class _Predicate>
inline _FwdIter remove_if (_FwdIter __first, _FwdIter __last, _Predicate __pred)
{
    __first = _STD::find_if (__first, __last, __pred);
    _FwdIter __next = __first;
    return __first == __last ?

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产一区二区视频| 26uuu久久综合| 亚洲欧美日韩系列| 色欧美片视频在线观看在线视频| 国产精品久久99| 99久久精品国产麻豆演员表| 亚洲人成影院在线观看| 欧美伊人精品成人久久综合97| 五月激情综合网| 精品久久人人做人人爽| 国产福利精品一区二区| 亚洲人成精品久久久久| 欧美日韩高清在线| 国产一区二区三区四区五区美女| 国产网站一区二区三区| 99精品黄色片免费大全| 亚州成人在线电影| 久久你懂得1024| 色琪琪一区二区三区亚洲区| 日韩一区二区视频在线观看| 欧美激情在线一区二区| 国产亚洲精品福利| 国产精品一区久久久久| 精品一区二区三区久久久| 国产盗摄女厕一区二区三区| 国产成人在线免费观看| 久久久久久影视| 精品国免费一区二区三区| 欧美妇女性影城| 一区二区三区不卡视频| 欧美日韩不卡视频| 国产在线观看一区二区| 亚洲综合在线电影| 日韩精品中午字幕| 99久久精品免费看| 精品在线免费观看| 亚洲一区在线观看视频| 久久精品欧美一区二区三区不卡 | 国产精品美女久久久久aⅴ国产馆| 在线观看亚洲一区| 成人性生交大片| 美女视频一区二区三区| 一区二区三区高清在线| 日本一区二区免费在线观看视频| 欧美一区二区三级| 色噜噜狠狠色综合中国| 狠狠久久亚洲欧美| 日韩一区精品字幕| 一区二区三区在线观看国产| 中文字幕巨乱亚洲| 久久亚洲影视婷婷| 91精品国产入口在线| 91福利区一区二区三区| 成人国产亚洲欧美成人综合网| 免费一级片91| 亚洲国产日产av| 国产精品国模大尺度视频| 久久久天堂av| 久久精品这里都是精品| 日韩欧美你懂的| 9191成人精品久久| 欧美高清激情brazzers| 欧美性猛交xxxx乱大交退制版| 成人激情开心网| 蜜臀久久久久久久| 一本久道中文字幕精品亚洲嫩| 麻豆久久久久久久| 亚洲一区二区三区四区五区中文| 国产精品午夜久久| 国产欧美一区二区三区沐欲| 精品日韩99亚洲| 欧美xxxxxxxx| 精品av综合导航| 久久这里只有精品首页| 日韩精品一区二区三区蜜臀| 日韩一区二区在线看| 欧美变态口味重另类| 日韩视频中午一区| 日韩精品一区二区三区中文不卡| 欧美大度的电影原声| 亚洲精品一区二区三区蜜桃下载 | 日本欧美加勒比视频| 日韩高清国产一区在线| 日韩黄色片在线观看| 日本强好片久久久久久aaa| 日韩极品在线观看| 九色综合狠狠综合久久| 国产精品一二三四| 成人听书哪个软件好| 99精品一区二区三区| 91久久精品一区二区三区| 在线观看日韩av先锋影音电影院| 欧美日韩国产综合视频在线观看| 69堂成人精品免费视频| 久久久久久久久久久久久久久99| 日本一二三不卡| 一区二区三区在线观看动漫 | 国产精品欧美久久久久一区二区| 欧美国产成人精品| 一区二区三区**美女毛片| 天天射综合影视| 韩国v欧美v亚洲v日本v| 成人av免费在线播放| 欧美色精品天天在线观看视频| 日韩一级免费一区| 国产日韩欧美a| 一区二区在线免费| 久久av资源站| 99久久免费视频.com| 欧美日韩日日夜夜| 国产亚洲成年网址在线观看| 亚洲视频综合在线| 热久久免费视频| 成人一区二区三区| 在线不卡中文字幕播放| 国产精品二三区| 久久精品国产亚洲a| 91小视频免费看| 日韩无一区二区| 一区二区三区**美女毛片| 国产一区二区不卡老阿姨| 91久久国产综合久久| 欧美成人性福生活免费看| 亚洲欧美成aⅴ人在线观看| 久久99久久99小草精品免视看| 91亚洲国产成人精品一区二三 | 国产精品毛片a∨一区二区三区| 亚洲bdsm女犯bdsm网站| 欧美狂野另类xxxxoooo| 国产视频一区二区在线观看| 亚洲尤物在线视频观看| www.亚洲在线| 日韩免费一区二区| 亚洲成人黄色影院| 97久久人人超碰| 国产亲近乱来精品视频| 日韩va欧美va亚洲va久久| 一本色道久久综合亚洲91| 精品国产乱码91久久久久久网站| 亚洲一区欧美一区| eeuss国产一区二区三区| 日韩精品最新网址| 亚洲午夜av在线| 日本乱人伦aⅴ精品| 国产精品天天看| 国产在线精品一区在线观看麻豆| 欧美精品三级在线观看| 亚洲一区二区三区四区五区黄| 国产91丝袜在线播放| 精品国产污网站| 久久99精品久久久久久动态图 | 国产剧情一区二区| 欧美精品一二三四| 五月天激情综合| 欧美老女人在线| 亚洲成人黄色影院| 欧美日韩电影一区| 三级亚洲高清视频| 这里只有精品99re| 午夜激情一区二区| 欧美视频在线观看一区二区| 伊人夜夜躁av伊人久久| 91片在线免费观看| 亚洲欧洲成人自拍| 不卡视频免费播放| 亚洲人吸女人奶水| 欧美影院一区二区| 亚洲国产cao| 欧美日韩精品欧美日韩精品一| 亚洲综合精品久久| 欧美日韩1区2区| 蜜臀av国产精品久久久久| 欧美一级午夜免费电影| 免费一级欧美片在线观看| 欧美精品一区男女天堂| 福利一区福利二区| 亚洲色图色小说| 在线亚洲欧美专区二区| 婷婷丁香久久五月婷婷| 日韩欧美激情在线| 国产精品888| 亚洲天堂成人在线观看| 欧美日韩一区二区三区在线| 激情久久久久久久久久久久久久久久| 欧美一区永久视频免费观看| 激情文学综合丁香| 中文av一区二区| 欧美亚洲国产bt| 久久不见久久见免费视频1| 国产免费久久精品| 日本黄色一区二区| 琪琪久久久久日韩精品| 久久久.com| 日本国产一区二区| 欧美aaaaa成人免费观看视频| 久久精品一二三| 色乱码一区二区三区88| 美女视频一区在线观看| 自拍偷在线精品自拍偷无码专区| 欧美三级韩国三级日本三斤|