I hesitated, but I think it would be more ambiguous for the user to use mystdpair.first for the begin iterator and mystdpair.second for the end iterator, even with doc ?