[CXX-2131] Add extract_document and extract_array methods for list builder Created: 12/Nov/20 Updated: 28/Oct/23 Resolved: 23/Mar/21 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.7.0, 3.7.0-beta1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Clyde Bazile III (Inactive) | Assignee: | Clyde Bazile III (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently, the list builder can be converted to a bson_value::view after construction. This allows users to view a non-owning b_document or b_array (using get_document or get_array, respectively). We should allow users to extract owning documents and arrays like the other builders. |
| Comments |
| Comment by Clyde Bazile III (Inactive) [ 11/Jan/21 ] |