ChinaUnix.net
相关文章推荐:

STL CLASS PARTIAL SPECIALIZATION

class toLower { public: char operator() ( char str) { char ch = tolower(str); return ch; } }; int main() { string str = "abABcd"; transform(str.begin(), str.end(), str.begin(), toLower()); for (string::iterator iter=str.begin(); iter != str.end(); iter++) cout << *iter; return 0; }这...

by hr_it - C/C++ - 2008-10-14 14:19:54 阅读(1477) 回复(6)

相关讨论

////////////////////////////////////////////////////////////////// //auto_map: 析购时候对map对象的second区域字段释放内存 ///////////////////////////////////////////////////////////////// template <class Key, class T, class Compare = less, class Allocator = allocator > > class auto_map : public map { public: explicit auto_map(const Comp...

by xiaomiao - C/C++ - 2006-10-08 00:01:36 阅读(9256) 回复(31)

定位到Python Standard Library的6.6节, 即6.6 functools, 看这样一个函数: def partial(func, *args, **keywords): def newfunc(*fargs, **fkeywords): newkeywords = keywords.copy() newkeywords.update(fkeywords) return func(*(args + fargs), **newkeywords) newfunc.func = func newfunc.args = args newfunc.keywords = keywords return ...

by wxPhoenix - Python文档中心 - 2007-07-25 17:37:57 阅读(2004) 回复(0)

系统非正常关机,启动时在检查/dev/usr文件系统时,出现: No partial TRANSACTIONS PENDING 这时系统就死在那里不动了?请问是什么原因?如何解决?谢谢!!

by qcgxlg - 其他UNIX - 2006-06-12 12:03:49 阅读(1632) 回复(4)

[color="#660066"]Support gzipped[color="#660066"] modules [color="#660066"]>Number: 53506 >Category: kern >Synopsis: Support gzipped[color="#660066"] modules. (partial patch) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >class: change-reques...

by mirnshi - BSD文档中心 - 2004-10-25 14:51:31 阅读(1416) 回复(0)

i am doing a restore test,restore some directories to other machine's different directory,it reports status 1:partitial sucessfull,about 10 files not restored,why?my restore client OS is redhat AS2.1

NBU备份

by tonylau - Veritas技术交流区 - 2004-08-04 12:25:35 阅读(1316) 回复(7)

•类的详细描述:类是一个域和方法的命名集合,域持有数据的值,方法操作这些这些值。 •一个类建立了一个域的集合:它定义了一个对象的属性。属性的类型是其它类、原子数据类型(如boolean或int)和接口。 •类设计者应该可以合理化类属性间的关联。 •类名应该既可以反映属性的意义,又能代表类的行为。 •一个类必须支持所有它所定义的行为,包括在超类中定义的和在类所支持的接口中定义的。(不支持超类...

by solar.xie - Java文档中心 - 2008-12-18 00:39:12 阅读(973) 回复(0)

新建个stl研究的群,希望感兴趣的加入,大家一起探讨。 37746921 高手新手都来啊。 [ 本帖最后由 Nopro 于 2009-3-21 18:26 编辑 ]

by Nopro - C/C++ - 2009-03-21 17:46:09 阅读(952) 回复(2)

前言 It came without ribbons! It came without tags! It came without packages, boxes or bags! ——Dr. Seuss, How the Grinch Stole Christmas!, Random House, 1957 我第一次写关于标准模板库的东西是在1995年,那时我决定把《More Effective C++》的最后一个条款写成一 个stl的简要概览。我早该更好地了解stl。不久以后,我开始收到一些邮件,问我什么时候写《Effective stl》。 我把这个想法忍了几年。一开始,...

by haoji - IT图书与评论 - 2008-06-05 17:40:41 阅读(32701) 回复(239)

学习stl有一个困惑,那位精通stl的人能说一下,stl源文件的结构,如果要阅读stl文件,应该按照什么迅速来,先看那些代码,在看哪些代码。 看了不少了,感觉很乱!!! 烦熟悉的人整理一下! 不胜感激!

by vincol - C/C++ - 2007-09-18 02:02:18 阅读(1744) 回复(5)

看过stl的string了没有? 你们说它直接些个类不就行了,为什么要搞一个什么char_traits来做什么,我看过别的公司写的自己的库,其中就有直接一个类实现的。你们说它搞的那么麻烦搞什么?有人说这种设计是“使用模板过渡了”,反正我看起来就很反感!

by vincol - C/C++ - 2007-09-15 23:15:11 阅读(1524) 回复(2)