Shortcuts

Template Function ripple::operator+

Function Documentation

template<typename T, typename Impl, typename R = array_impl_t<Impl, Impl>, array_value_enable_t<T, Impl> = 0>
constexpr auto ripple::operator+(T val, const Array<Impl> &a) noexcept -> R

Overload of operator+ to add the scalar value to each element in the array, returning a new array.

Return

A new array with either this implementation type, or the fallback type.

Parameters
  • val: The value to add with each element of the array.

  • a: The array to add with the value.

Template Parameters
  • T: The type of the scalar.

  • Impl: The implementation type of the array.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples