advgetopt/option_info_ref.cpp
/** \brief Return the length of the option's value.
 *
 * This function returns the length of the option's value. This is the
 * number of bytes in the string.
 *
 * \note
 * If the value is not currently defined, this function returns the
 * length of the default value.
 *
 * \return The length of the option's value.
 */
\brief Return the length of the option's value.
This function returns the length of the option's value. This is the
number of bytes in the string.

\note
If the value is not currently defined, this function returns the
length of the default value.

\return The length of the option's value.
\ brief Return the length of the option ' s value . This function returns the length of the option ' s value . This is the number of bytes in the string . \ note If the value is not currently defined this function returns the length of the default value . \ return The length of the option ' s value .
size_t option_info_ref::length() const
{
    if(f_opt->is_defined())
    {
        return f_opt->get_value().length();
    }
    return f_opt->get_default().length();
}
size_t option_info_ref :: length ( ) const { if ( f_opt -> is_defined ( ) ) { return f_opt -> get_value ( ) . length ( ) ; } return f_opt -> get_default ( ) . length ( ) ; }
\brief Return the length of the option's value.
\ brief Return the length of the option ' s value .