| 155 | namespace my_library { |
| 156 | |
| 157 | std::pmr::vector<char> get_chars1() |
| 158 | { |
| 159 | // This leaks memory because `v` does not own the memory resource |
| 160 | std::pmr::vector<char> v( new my_resource ); |
| 161 | |
| 162 | return v; |
| 163 | } |
| 164 | |
| 165 | } // my_library |
| 166 | // end::doc_background_7[] |
nothing calls this directly
no outgoing calls
no test coverage detected