MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / autoResizeTestSet

Method autoResizeTestSet

source/MRMesh/MRBitSet.h:205–211  ·  view source on GitHub ↗

same as \ref autoResizeSet and returns previous value of pos-bit

Source from the content-addressed store, hash-verified

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; }

Callers 3

fixVertexMethod · 0.45
extractClosedLoopsFunction · 0.45
subdivideMeshFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected