[CXX-2038] Change URI option getters to return optional views where possible Created: 08/Jun/20 Updated: 30/Jun/23 |
|
| Status: | Backlog |
| Project: | C++ Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kevin Albertson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CXX usability improvements |
| Description |
|
There is a TODO comment in uri.hpp to have URI getters return optional views where possible. Returning an optional allows the user to distinguish whether an option was passed or not instead of defaulting. And getters that return a std::string can be a stdx::string_view instead to avoid an unnecessary copy. |