advgetopt/option_info_ref.cpp
/** \brief Retrieve the length of the option's value.
 *
 * This function checks the option's value and returns true if it is empty.
 *
 * \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 Retrieve the length of the option's value.
This function checks the option's value and returns true if it is empty.

\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 Retrieve the length of the option ' s value . This function checks the option ' s value and returns true if it is empty . \ 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 .
bool option_info_ref::empty() const
{
    if(f_opt->is_defined())
    {
        return f_opt->get_value().empty();
    }
    return true;
}
bool option_info_ref :: empty ( ) const { if ( f_opt -> is_defined ( ) ) { return f_opt -> get_value ( ) . empty ( ) ; } return true ; }
\brief Retrieve the length of the option's value.
\ brief Retrieve the length of the option ' s value .