| 25 | static const size_type npos; |
| 26 | |
| 27 | BasicFixedString(const BasicStringPiece<char_type>& str) // NOLINT |
| 28 | : size_(str.size()), |
| 29 | data_() { |
| 30 | assert(size() <= MAX); |
| 31 | std::copy(str.begin(), str.end(), data()); |
| 32 | data()[size()] = '\0'; |
| 33 | } |
| 34 | |
| 35 | operator BasicStringPiece<char_type>() { |
| 36 | return BasicStringPiece<char_type>(data(), size()); |