码迷,mamicode.com
首页 >  
搜索关键字:container    ( 5967个结果
深入Jetty源码之Servlet框架及实现(Servlet、Filter、Registration)
概述Servlet是Server Applet的缩写,即在服务器端运行的小程序,而Servlet框架则是对HTTP服务器(Servlet Container)和用户小程序中间层的标准化和抽象。这一层抽象隔离了HTTP服务器的实现细节,而Servlet规范定义了各个类的行为,从而保证了这些“服务器端运...
分类:其他好文   时间:2014-05-17 00:46:29    阅读次数:387
【LeetCode】Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2014-05-16 19:42:17    阅读次数:286
LeetCode 011 Container With Most Water
【题目】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
分类:其他好文   时间:2014-05-16 01:32:47    阅读次数:406
c++11的新特性
好奇心来源于下面的一段代码, 一个是unordered_map, 这是c++11新加的container. 另外还有unordered_set, unordered_multimap, unordered_multiset.另外在for循环中, 可以使用下列形式:1 for (auto &eleme...
分类:编程语言   时间:2014-05-15 12:03:28    阅读次数:339
[LeetCode]Container With Most Water
Container With Most Water...
分类:其他好文   时间:2014-05-15 02:29:03    阅读次数:387
深入浅出实例解析linux内核container_of宏
做一件事情首先应该知道它的目的是什么。 container_of的目的:如何通过结构中的某个变量获取结构本身的指针。 总体思路:假想一下,你的结构体中有好几个成员,你如何通过里面的“任一成员”获取 整个结构体的首地址呢。container_of的做法就是通过typeof定义一个与“任一成员”同类型 的指针变量pvar_a(假设变量名就是pvar_a),并让指针变量pvar_a指向这个“...
分类:系统相关   时间:2014-05-14 19:56:15    阅读次数:494
OpenStack_Swift源码分析——Ring基本原理及一致性Hash算法
1、Ring的基本概念 Ring是swfit中最重要的组件,用于记录存储对象与物理位置之间的映射关系,当用户需要对Account、Container、Object操作时,就需要查询对应的Ring文件(Account、Container、Object都有自己对应的Ring),Ring 使用Region(最近几个版本中新加入的)、Zone、Device、Partition和Replica来维护这些信...
分类:其他好文   时间:2014-05-14 15:22:15    阅读次数:1213
【我的设计模式】迭代器模式
迭代器(Iterator)模式,又叫做游标(Cursor)模式。GOF给出的定义为:提供一种方法访问一个容器(container)对象中各个元素,而又不需暴露该对象的内部细节。应用场景在java中所有的集合类都实现了Conllection接口,而Conllection接口又继承了Iterable接口...
分类:其他好文   时间:2014-05-14 11:54:50    阅读次数:256
CSS布局
body { font-family:Verdana; font-size:14px; margin:0;} #container {margin:0 auto; width:100%;}定义网页主体 字体是 Verdana 字体大小是 14px 网页主体距离浏览器边框距离为0、又定义了一个类(id...
分类:Web程序   时间:2014-05-12 20:43:32    阅读次数:325
templates(2.1)
Class Templates类别模板就像上一章所说的 functions 那样,classes 也可以针对一或多个类型被参数化。用来管理「各种 不同类型的元素」的 container classes(容器类别)就是典型例子。运用 class templates 你可以实 作出可包容各种类型的 co...
分类:其他好文   时间:2014-05-10 07:59:32    阅读次数:386
5967条   上一页 1 ... 593 594 595 596 597 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!