same as \ref autoResizeSet and returns previous value of pos-bit
| 203 | |
| 204 | /// same as \ref autoResizeSet and returns previous value of pos-bit |
| 205 | [[nodiscard]] bool autoResizeTestSet( size_t pos, bool val = true ) |
| 206 | { |
| 207 | bool const b = test( pos ); |
| 208 | if ( b != val ) |
| 209 | autoResizeSet( pos, val ); |
| 210 | return b; |
| 211 | } |
| 212 | |
| 213 | /// returns the amount of memory this object occupies on heap |
| 214 | [[nodiscard]] size_t heapBytes() const { return capacity() / 8; } |
no outgoing calls
no test coverage detected