* Makes a distinct copy of this string. `IsDetached()` is always true after this call. * * @throw std::length_error */
| 231 | * @throw std::length_error |
| 232 | */ |
| 233 | void Clone() { |
| 234 | Construct(StdStr()).Swap(S_); |
| 235 | } |
| 236 | |
| 237 | size_t RefCount() const noexcept { |
| 238 | return S_.RefCount(); |