标签:
base 库
1. base/StringPiece.h
A string like object that points into another piece of memory.
Useful for providing an interface that allows clients to easily
pass in either a "const char*" or a "string".
Arghh! I wish C++ literals were automatically of type "string".
使用了:__type_traits
This makes vector<StringPiece> really fast for some STL implementations
Functions used to create STL containers that use StringPiece
Remember that a StringPiece‘s lifetime had better be less than
that of the underlying string or char*. If it is not, then you
cannot safely store a StringPiece into an STL container
标签:
原文地址:http://www.cnblogs.com/qiangxia/p/4409626.html