Template Function util::assertHasValue

Function Documentation

template<typename T>
void util::assertHasValue(std::deque<T> queue, std::string item)

Confirms that the queue passed has at least 1 value available, throwing an exception if not.

Note

Wrapper around assertHasValues

Template Parameters
  • T: type that the queue holds

Parameters
  • item: string of item this byte will be used for. Used to create error message.

  • queue: queue of elements of type T to have length checked on

Exceptions