xte ::array <T >::reset ()
Defined in header <xte/data/array.hpp> Definition
Destroys stored elements in order, deallocates claimed memory, and resetsconstexpr void reset ()& noexcept ;
.data () to nullptr , .size () to 0 , and .capacity () to 0 .Example
Output:xte ::array array = {1 ,2 ,3 };std ::println ("{}" ,array .size ());array .reset ();std ::println ("{}" ,array .size ());
[View in Compiler Explorer]3 0