MCPcopy Create free account
hub / github.com/SmingHub/Sming / trimToSize

Method trimToSize

Sming/Wiring/WVector.h:206–211  ·  view source on GitHub ↗

* @brief Reduce capacity to match current size */

Source from the content-addressed store, hash-verified

204 * @brief Reduce capacity to match current size
205 */
206 void trimToSize()
207 {
208 if(_size < _data.size) {
209 _data.trim(_size, true);
210 }
211 }
212
213 const Element& elementAt(unsigned int index) const
214 {

Callers 1

executeMethod · 0.80

Calls 1

trimMethod · 0.45

Tested by

no test coverage detected