[llvm-commits] PATCH: Adding an array constructor to StringRef
Marshall Clow
mclow.lists at gmail.com
Mon Jun 18 08:36:23 PDT 2012
Modeled on the one in ArrayRef
/// Construct an string ref from a C array.
template <size_t N>
/*implicit*/ StringRef(const char (&Arr)[N])
: Data(Arr), Length(N) {}
-- Marshall
Marshall Clow Idio Software <mailto:mclow.lists at gmail.com>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: StringRef.patch
Type: application/octet-stream
Size: 629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120618/b7dad843/attachment.obj>
More information about the llvm-commits
mailing list