- 博客(28)
- 收藏
- 关注
原创 Effective STL 27 convert a container's con_iterators to iterators
Use distance and advance to convert a container's const_iterators to iterators.
2017-08-31 20:44:47 167
原创 Accelerated C++ 5 Using sequential containers and analyzing strings
Using sequential containers and analyzing strings
2017-08-31 15:37:34 175
原创 Accelerated C++ 4 organizing programs and data
origanizing programs and data
2017-08-31 13:05:48 216
原创 Accelerated C++ 3 working with batches of data
working with batches of data
2017-08-31 12:28:09 195
原创 Effective STL 24 Choose carefully between map::operator[] and map::insert
choose between map::operator[] and map::insert.
2017-08-29 17:13:59 234
原创 Effective STL 23 Consider replacing associative container with sorted vector
replacing associative container with sorted vector
2017-08-29 10:30:15 434
原创 Effective STL 22 Avoid in-place key modification in set and multiset
avoid in-place key modification in set and multiset
2017-08-28 16:33:42 216
原创 Effective STL 21 Always have comparison functions return false for equal values
always have comparison functions return false for equal values
2017-08-28 12:00:40 157
原创 Effective STL 20 Specify comparison types for associative containers of pointers
Specify comparison types for associative containers of pointers
2017-08-28 11:11:22 292
原创 Effective STL 19 understand the difference between equality and equivalence
difference between equality and equivalence
2017-08-27 18:48:07 278
原创 Effective STL 16 pass vector and string data to legacy APIs
pass vector and string data to legacy APIs
2017-08-26 21:59:34 136
原创 Effective STL 17 Use "the swap trick" to trim excess capacity
use "the swap trick" to trim excess capacity
2017-08-26 21:50:13 227
原创 Sleep sort
sleep sort#!/bin/bashfunction f() { sleep "$1" echo "$1" }# -n "$1" 第一个参数非空when [ -n "$1" ] do # 后加 & 退出shell 后运行的命令继续执行 f "$1" & # 删除一个参数,即待排数 shiftd
2017-08-18 20:01:45 230
原创 Effective STL 9 erasing options
To eliminate all objects in a container that have a particular value:contiguous-memory container(vector, deque, or staing)c.erase(remove(c.begin(), c.eng(), 1963), c.end());listc.remove(19...
2017-08-17 11:24:51 236
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人