We provide non-explicit singleton constructors so users can pass in a "const char*" or a "string" wherever a "StringPiece" is expected.
| 37 | // in a "const char*" or a "string" wherever a "StringPiece" is |
| 38 | // expected. |
| 39 | StringPiece() : ptr_(NULL), length_(0) {} |
| 40 | |
| 41 | StringPiece(const char* str) // NOLINT(runtime/explicit) |
| 42 | : ptr_(str), length_(0) { |