Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
pongasoft::stl Namespace Reference

Namespaces

namespace  impl

Functions

template<typename T, typename U, typename F, std::size_t N, typename Indices = std::make_index_sequence<N>>
constexpr std::array< U, N > transform (std::array< T, N > const &a, F &&f)
 Transforms an array containing elements of type T into an array containing elements of type U by applying the function 'f' (which should convert an element of type T into an element of type U.

Function Documentation

◆ transform()

template<typename T, typename U, typename F, std::size_t N, typename Indices = std::make_index_sequence<N>>
std::array< U, N > transform ( std::array< T, N > const & a,
F && f )
constexpr

Transforms an array containing elements of type T into an array containing elements of type U by applying the function 'f' (which should convert an element of type T into an element of type U.