mirror of
https://github.com/Z3Prover/z3
synced 2025-11-05 05:49:13 +00:00
remove a few string copies
This commit is contained in:
parent
db5a1a7604
commit
b2d5c24c1d
18 changed files with 39 additions and 80 deletions
|
|
@ -58,13 +58,13 @@ inline std::ostream& operator<<(std::ostream & out, mk_pp_vec const & pp) {
|
|||
inline std::string operator+(char const* s, mk_pp const& pp) {
|
||||
std::ostringstream strm;
|
||||
strm << s << pp;
|
||||
return strm.str();
|
||||
return std::move(strm).str();
|
||||
}
|
||||
|
||||
inline std::string operator+(std::string const& s, mk_pp const& pp) {
|
||||
std::ostringstream strm;
|
||||
strm << s << pp;
|
||||
return strm.str();
|
||||
return std::move(strm).str();
|
||||
}
|
||||
|
||||
inline std::string& operator+=(std::string& s, mk_pp const& pp) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue