rsked/playpref.cc
/// Retrieve the jth player for the m+e mode, setting n on success
/// and returning true.  If not available, then return false.
///
Retrieve the jth player for the m+e mode, setting n on success
and returning true.  If not available, then return false.
Retrieve the jth player for the m + e mode setting n on success and returning true . If not available then return false .
bool
Player_prefs::get_player( Medium m, Encoding e, unsigned j, std::string &pstr)
    const
{
    auto it = m_srcmap.find( me_to_key(m,e) );
    if (it == m_srcmap.end()) {
        return false;
    }
    unsigned pc = static_cast<unsigned>(it->second.size());
    if (j >= pc) {
        return false;
    }
    pstr = it->second[j];
    return true;
}
bool Player_prefs :: get_player ( Medium m , Encoding e , unsigned j , std :: string & pstr ) const { auto it = m_srcmap . find ( me_to_key ( m , e ) ) ; if ( it == m_srcmap . end ( ) ) { return false ; } unsigned pc = static_cast < unsigned > ( it -> second . size ( ) ) ; if ( j >= pc ) { return false ; } pstr = it -> second [ j ] ; return true ; }
Retrieve the jth player for the m+e mode, setting n on success
and returning true.
Retrieve the jth player for the m + e mode setting n on success and returning true .