introduce string_view
This commit is contained in:
+1
-2
@@ -29,8 +29,7 @@ bool ReadFile(const fs::path& path, std::string* output);
|
||||
|
||||
// Dump the string data line by line to achieve more readability.
|
||||
// Also limit the maximum size of the data to be dumped.
|
||||
void DumpByLine(const std::string& data, std::ostream& os,
|
||||
const std::string& prefix);
|
||||
void DumpByLine(const std::string& data, std::ostream& os, string_view prefix);
|
||||
|
||||
// Print TCP endpoint.
|
||||
// Usage: PrintEndpoint(std::cout, endpoint)
|
||||
|
||||
Reference in New Issue
Block a user