3 ms·
Links to illustrate: https://github.com/boostorg/utility/blob/develop/include/boost/utility/string_ref.hpp https://github.com/boostorg/utility/blob/develop/inc
by humanrebar 9y ago
Links to illustrate:
https://github.com/boostorg/utility/blob/develop/include/boost/utility/string_ref.hpp https://github.com/boostorg/utility/blob/develop/include/boo...
This proposal references Google and LLVM implementations:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n344...
Looks like the LLVM implementation goes back to at least 2009:
https://github.com/llvm-mirror/llvm/blob/master/include/llvm/ADT/StringRef.h https://github.com/llvm-mirror/llvm/blob/master/include/llvm...