1 #include <string> 2 appendPathSegment(const std::string & target,const std::string & segment)3inline std::string appendPathSegment(const std::string& target, 4 const std::string& segment) 5 { 6 std::string newPath; 7 newPath.reserve(target.size() + 1 + segment.size()); 8 newPath.append(target).append("/").append(segment); 9 return newPath; 10 } 11