![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 85
cjweffort
机器学习,大数据,开源,c
展开
-
STL之hash_map总结
一.需要加载的头头文件和命名空间第一种用法:(SGI STL中,linux中g++采用此种STL标准)#include using namespace __gnu_cxx;已经定义的hash Function:struct hashstruct hashstruct hash struct hash struct hashstruct has原创 2013-10-27 10:31:40 · 1268 阅读 · 0 评论 -
STL—map之总结
一.map的原型1.maptemplate class map {...}2.multimaptemplate class multimap {...}由此可以看出我们可以根据需要自定义compare Function二.自定义compare Function2.1重载2.1.1以成员函数方式去重载inline bool原创 2013-10-27 10:25:58 · 660 阅读 · 0 评论 -
SGI STL内存配置器Allocator
STL配置器(allocator)头文件与基本的函数主要为以下三个头文件:stl_constructor.h,stl_alloc.h,stl_uninitialized.h构造和析构工具:construct()和destroy()这两个函数的实现位于stl_construct.h,用来实现对象的构造和析构construct()和destroy()被实现为全局函数 #ifnd原创 2014-01-24 22:15:03 · 929 阅读 · 0 评论