#include <array>
Go to the source code of this file.
|
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 More...
|
|
template<typename T , typename U , typename F , std::size_t N, std::size_t... I> |
constexpr std::array< U, N > | transformArray (std::array< T, N > const &a, F &&f, std::index_sequence< I... >) |
|