libtld/tld_emails.cpp
bool tld_email_list::next(tld_email_t& e) const
{
    if(f_pos >= static_cast<int>(f_email_list.size()))
    {
        return false;
    }

    e = f_email_list[f_pos];
    ++f_pos;

    return true;
}
/** \brief Retrieve a copy of the next email information.
 *
 * This function reads the next email in your \p e parameter.
 *
 * The function returns true when the email parameter could be set. It
 * is very important that you check that return value because otherwise
 * you cannot actually know whether you reached the end of the list.
 *
 * \param[out] e  The email object that receives the next item if there is one.
 *
 * \return true if e was set, false otherwise and e is not modified.
 */
\brief Retrieve a copy of the next email information.
This function reads the next email in your \p e parameter.

The function returns true when the email parameter could be set. It
is very important that you check that return value because otherwise
you cannot actually know whether you reached the end of the list.

\param[out] e  The email object that receives the next item if there is one.

\return true if e was set, false otherwise and e is not modified.
\ brief Retrieve a copy of the next email information . This function reads the next email in your \ p e parameter . The function returns true when the email parameter could be set . It is very important that you check that return value because otherwise you cannot actually know whether you reached the end of the list . \ param [ out ] e The email object that receives the next item if there is one . \ return true if e was set false otherwise and e is not modified .
bool tld_email_list::next(tld_email_t& e) const
{
    if(f_pos >= static_cast<int>(f_email_list.size()))
    {
        return false;
    }
    e = f_email_list[f_pos];
    ++f_pos;
    return true;
}
bool tld_email_list :: next ( tld_email_t & e ) const { if ( f_pos >= static_cast < int > ( f_email_list . size ( ) ) ) { return false ; } e = f_email_list [ f_pos ] ; ++ f_pos ; return true ; }
\brief Retrieve a copy of the next email information.
\ brief Retrieve a copy of the next email information .