find2.h

来自「包括ARM开发环境的使用和一些调试用的源程序」· C头文件 代码 · 共 12 行

H
12
字号
// This file contains the implementation of the find2 function.
// This function is not actually used elsewhere in the book.

template <class In, class X> In find(In begin, In end, const X& x)
{
	if (begin == end || *begin == x)
		return begin;
	begin++;
	return find(begin, end, x);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?