[SERVER-23100] Add methods to StringBuilder/str::stream that return unowned copy of underlying string Created: 11/Mar/16  Updated: 02/Sep/16  Resolved: 29/Aug/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Improvement Priority: Major - P3
Reporter: J Rassi Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2016-09-19
Participants:

 Description   

It would be convenient to pass an object of type str::stream into a function that takes a parameter of type StringData, without having to incur the performance/typing overhead of constructing a temporary std::string.



 Comments   
Comment by Githook User [ 29/Aug/16 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-23100 Allow StringBuilder and str::stream to return StringData views

Avoids unnecessary copies when passing result to a function.
Branch: master
https://github.com/mongodb/mongo/commit/d6d263b0c8fe21ac9bfca561515dccbe02f72e64

Generated at Thu Feb 08 04:02:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.