xte ::array <T >::push ()
Defined in header <xte/data/array.hpp> Definitions
#0Default-constructs an element at the end of the array.constexpr auto push ()& XTE_ARROW (this ->insert (-1uz ) )
#1
Constructs an element at the end of the array with the provided arguments.template <typename U =T >constexpr auto push (U && arg ,auto&&... args )& XTE_ARROW (this ->insert (-1uz ,XTE_FWD (arg ),XTE_FWD (args )...) )
Example
Output:xte ::array array = {1 ,2 ,3 };array .push (4 );std ::println ("{}" ,array );
[View in Compiler Explorer][1, 2, 3, 4]