#if 0
#include "..\stl_config.h"
#pragma warning(disable:4996)
#include "..\vector"
#include "..\string"
//#include <iostream>
//using std::cout;
//using std::endl;
using std::string;
using namespace std;
int nIdx = 0;
void print(string & str, int idx)
{
char buf[128];
sprintf(buf,"%d: %s", nIdx++, str.c_str());
//str = buf;
//vec.push_back(str);
printf("@%d = %s\n", idx, buf);
}
class funtor
{
public:
funtor(int idx)
{
this->mIdx = idx;
}
void operator()(string & str)
{
return print(str,mIdx);
}
int mIdx;
};
int main(int argc, char* argv[])
{
std::vector<string> vec;
vec.push_back(string("s"));
vec.push_back(string("t"));
vec.push_back(string("l"));
vector<string>::iterator it = find_if(vec.begin(), vec.end(),std::bind2nd(std::equal_to<string>(), "t"));
if (vec.end() != it)
{
print(*it, 't');
}
else
{
printf("not found\n");
}
for(int i = 0; i < 10; i++)
{
for_each(vec.begin(), vec.end(),funtor(i));
}
system("pause");
return 0;
}
#endif
没有合适的资源?快使用搜索试试~ 我知道了~
sgi_stl.zip_VS2010 sgistl_sgi_sgi stl_stl SGI_vs2010 sgi pudn
共109个文件
h:68个
cpp:4个
algorithm:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 104 浏览量
2022-09-24
15:09:22
上传
评论
收藏 381KB ZIP 举报
温馨提示
sgi stl 在vs2008下修改后能编译成功,外加示例代码
资源推荐
资源详情
资源评论
收起资源包目录
sgi_stl.zip_VS2010 sgistl_sgi_sgi stl_stl SGI_vs2010 sgi pudn (109个子文件)
algorithm 1KB
bitset 32KB
HelloSGISTL.cpp 1KB
StlRequire.cpp 575B
StlErrorTest.cpp 376B
HelloWorld.cpp 192B
deque 1KB
functional 762B
stl_algo.h 111KB
stl_rope.h 98KB
stl_deque.h 52KB
ropeimpl.h 47KB
stl_tree.h 44KB
stl_hashtable.h 32KB
stl_slist.h 31KB
stl_iterator.h 29KB
stl_alloc.h 28KB
concept_checks.h 28KB
stl_vector.h 28KB
stl_bvector.h 27KB
stl_list.h 25KB
stl_algobase.h 24KB
stl_function.h 22KB
stl_config.h 21KB
stl_hash_map.h 20KB
stl_hash_set.h 19KB
type_traits.h 13KB
stl_threads.h 12KB
stl_iterator_base.h 12KB
stl_map.h 10KB
stl_multimap.h 10KB
stl_heap.h 10KB
stl_multiset.h 9KB
container_concepts.h 9KB
stl_set.h 9KB
stl_uninitialized.h 9KB
stl_numeric.h 8KB
stl_queue.h 7KB
sequence_concepts.h 7KB
stl_tempbuf.h 5KB
stl_stack.h 4KB
char_traits.h 4KB
stl_construct.h 4KB
function.h 3KB
algo.h 3KB
iterator.h 3KB
stl_pair.h 3KB
stl_hash_fun.h 3KB
stl_raw_storage_iter.h 3KB
defalloc.h 2KB
stl_range_errors.h 2KB
stl_ctraits_fns.h 2KB
algobase.h 2KB
tempbuf.h 2KB
stl_relops.h 2KB
stl_exception.h 2KB
hashtable.h 2KB
pair.h 1KB
hash_map.h 1KB
bvector.h 1KB
multiset.h 1KB
multimap.h 1KB
hash_set.h 1KB
stack.h 1KB
map.h 1KB
set.h 1KB
heap.h 1KB
tree.h 1KB
vector.h 1KB
deque.h 1KB
list.h 1KB
alloc.h 1KB
stl_string_fwd.h 1KB
rope.h 909B
pthread_alloc.h 866B
slist.h 830B
hash_map 1KB
hash_set 1KB
sgi_stl.IAB 476KB
sgi_stl.IAD 5KB
sgi_stl.IMB 216KB
sgi_stl.IMD 2KB
iterator 1KB
limits 20KB
list 1KB
map 1KB
memory 3KB
numeric 2KB
sgi_stl.PFI 344B
sgi_stl.PO 776B
sgi_stl.PR 27KB
sgi_stl.PRI 170KB
pthread_alloc 16KB
queue 1KB
rope 924B
sgi_stl.SearchResults 3KB
set 1KB
slist 807B
sgi_stl.sln 879B
stack 1KB
共 109 条
- 1
- 2
资源评论
林当时
- 粉丝: 97
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功