Function luhn_check_digit

Synopsis

#include "breeze/checksum/luhn.hpp"

char luhn_check_digit(std::string const &s)

Description

Returns
The Luhn checksum digit for the given string. This is a char in ['0', '9'].
Exceptions
A std::invalid_argument if any of the characters in s is not a decimal digit (i.e. one of 0123456789).

Source

Line 58 in breeze/checksum/luhn.hpp.