| 45 | namespace NPrivate { |
| 46 | template <typename T> |
| 47 | inline size_t GetLength(const T&) { |
| 48 | // By default don't pre-allocate space when joining and appending non-string types. |
| 49 | // This code can be extended by estimating stringified length for specific types (e.g. 10 for ui32). |
| 50 | return 0; |
| 51 | } |
| 52 | |
| 53 | template <> |
| 54 | inline size_t GetLength(const TString& s) { |
no test coverage detected