| <<< std::pair construction | Index | std::map >>> |
Functions that need to return two values often return a pair:
pair< bool, double > result = do_a_calculation();
if ( result.first ) {
do_something_more( result.second );
} else {
report_error();
}
| <<< std::pair construction | Index | std::map >>> |