Template Function Pennylane::Util::prepend_to_tuple

Function Documentation

template<class T, class Tuple>
constexpr auto Pennylane::Util::prepend_to_tuple(T &&elem, Tuple &&t)

Prepend an element to a tuple.

Template Parameters
  • T – Type of element

  • Tuple – Type of the tuple (usually std::tuple)

Parameters
  • elem – Element to prepend

  • t – Tuple to add an element