Template Function helpme::allDivisors

Function Documentation

template<typename T>
bool helpme::allDivisors(T gridSize, const std::initializer_list<T> &requiredDivisors)

allDivisors checks that a list of values are divisors of a given input value.

Parameters:
  • gridSize – the gridSize to check for divisors.

  • requiredDivisors – the list of divisors.

Returns:

whether all listed values are divisors of gridSize.