Function has_luhn_sum

Synopsis

#include "breeze/checksum/luhn.hpp"

bool has_luhn_sum(std::string const &s)

Description

Returns
Whether the given string has a Luhn sum as its last character.
Exceptions
A std::invalid_argument if any of the characters in s is not a decimal digit (i.e. one of 0123456789).

Source

Line 45 in breeze/checksum/luhn.hpp.