xte ::array <T >::operator+ ()
Defined in header <xte/data/array.hpp> Definitions
#0Appends elements to a copy of[[nodiscard ]]friend constexpr auto operator+ (xte ::is_derived_from <xte ::array <T >>auto&& lhs ,auto&& rhs )XTE_ARROW (/* ... */ )
lhs with .push_range ().#1
Prepends elements totemplate <typename Lhs >requires (!xte ::is_derived_from <Lhs ,xte ::array <T >>) [[nodiscard ]]friend constexpr auto operator+ (xte ::is_derived_from <xte ::array <T >>auto&& lhs ,auto&& rhs )XTE_ARROW (/* ... */ )
rhs with .insert_range ().Example
Output:std ::println ("{}" ,xte ::array {1 ,2 } +xte ::array {3 ,4 });
[View in Compiler Explorer][1, 2, 3, 4]