advgetopt/validator.cpp
/** \brief Check the value against a regular expression.
 *
 * This function is used to match the value of an argument against a
 * regular expression. It returns true when it does match.
 *
 * \param[in] value  The value to be validated.
 *
 * \return true on a match.
 */
\brief Check the value against a regular expression.
This function is used to match the value of an argument against a
regular expression. It returns true when it does match.

\param[in] value  The value to be validated.

\return true on a match.
\ brief Check the value against a regular expression . This function is used to match the value of an argument against a regular expression . It returns true when it does match . \ param [ in ] value The value to be validated . \ return true on a match .
bool validator_regex::validate(std::string const & value) const
{
    std::smatch info;
    return std::regex_match(value, info, f_regex);
}
bool validator_regex :: validate ( std :: string const & value ) const { std :: smatch info ; return std :: regex_match ( value , info , f_regex ) ; }
\brief Check the value against a regular expression.
\ brief Check the value against a regular expression .