Template Function lbcrypto::MoveAppend

Function Documentation

template<class X>
void lbcrypto::MoveAppend(std::vector<X> &dst, std::vector<X> &src)

Moves the elements of src onto the end of dst, leaving src empty; when dst is empty the whole vector is moved instead of element by element.

Parameters
  • dst – vector receiving the elements

  • src – vector whose elements are moved out; empty on return