Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
stl.h File Reference
#include <array>

Go to the source code of this file.

Namespaces

namespace  pongasoft
namespace  pongasoft::stl
namespace  pongasoft::stl::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.
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... >)