Here I believe you can use the new range based for loop in c++11:

``` 
for(const auto& testcase : m_impl->m_testcases)
{
    for(const auto& benchmark : testcase.second)
    {
        if(benchmark_name == benchmark.first)
        {
            ....
```