meta: make meta seq ::clear forward to ::resize

This commit is contained in:
Michele Caini
2023-06-29 12:09:05 +02:00
parent 5e7e4a4b11
commit c659fad434

View File

@@ -1849,8 +1849,7 @@ inline bool meta_sequence_container::resize(const size_type sz) {
* @return True in case of success, false otherwise.
*/
inline bool meta_sequence_container::clear() {
void *elem = storage.data();
return elem && resize_fn(elem, 0u);
return resize(0u);
}
/**