元素保证是连续存储了 operator[]之类的不可以invalidate iterator了,于是COW不行了 不再是container所以swap不需要遵守不能copy/move/swap元素的规定,于是SSO可行了 reference不再是Allocator::reference了,而直接就是...
分类:
编程语言 时间:
2015-05-04 13:23:38
阅读次数:
128
去w3school看看string的基本方法把:方法描述anchor() 创建 HTML 锚。 big() 用大号字体显示字符串。 blink() 显示闪动字符串。 bold() 使用粗体显示字符串。 charAt() 返回在指定位置的字符。 charCodeAt() 返回在指定的位置的字符的 Un...
分类:
Web程序 时间:
2015-05-04 13:18:49
阅读次数:
113
HTTPPost发送JSON:
private static final String APPLICATION_JSON = "application/json";
private static final String CONTENT_TYPE_TEXT_JSON = "text/json";
public static void httpPostWithJSON(St...
分类:
Web程序 时间:
2015-05-04 12:08:16
阅读次数:
95
题目:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input...
分类:
其他好文 时间:
2015-05-04 12:00:15
阅读次数:
107
转自http://blog.chinaunix.net/uid-21961753-id-1810588.html格式: test conditionstest -n string : string 不为空test -z string : string 为空test int1 -eq int2 : i...
分类:
系统相关 时间:
2015-05-04 11:31:26
阅读次数:
196
关于TextView异常换行,参差不齐问题分析:每行的开头的第一个字符如果是字母,数字,标点符号以及特殊字符 可能是由于都是半角字符,所以需要转化成全角字符解决方法是:public String transport(String inputStr){ char arr[] = inputStr.to...
分类:
移动开发 时间:
2015-05-04 11:30:26
阅读次数:
146
NSUserDefaults读取和写入自定义对象 NSUserDefaults可以存取一些短小的信息。比如存入再读出一个字符串到NSUserDefaults:view plaincopy to clipboardprint?NSString *string = [NSString stringWit...
分类:
其他好文 时间:
2015-05-04 11:26:16
阅读次数:
147
//c++之字符串分割:std::string str_buf = "hello/world";std::vector str_arr;split(str_buf, "/", str_arr);for(std::vector::iterator it=str_arr.begin(); it !...
分类:
编程语言 时间:
2015-05-04 11:25:54
阅读次数:
143
problem:
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetco...
分类:
其他好文 时间:
2015-05-04 10:04:14
阅读次数:
96
problem:
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For exa...
分类:
其他好文 时间:
2015-05-04 10:02:34
阅读次数:
116