MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / operator +

Function operator +

unittests/catch.hpp:9726–9732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9724 }
9725
9726 auto operator + ( StringRef const& lhs, StringRef const& rhs ) -> std::string {
9727 std::string str;
9728 str.reserve( lhs.size() + rhs.size() );
9729 str += lhs;
9730 str += rhs;
9731 return str;
9732 }
9733 auto operator + ( StringRef const& lhs, const char* rhs ) -> std::string {
9734 return std::string( lhs ) + std::string( rhs );
9735 }

Callers

nothing calls this directly

Calls 2

stringClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected