We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compute/include/boost/compute/detail/lru_cache.hpp
Line 102 in 36c8913
Since i is a valid iterator, we can replace this call with. m_map[key] = std::make_pair(value, j);
with
i->second = std::make_pair(value, j);
avoiding the second map search.
The text was updated successfully, but these errors were encountered:
I don't think this will work as iterator is not passing to the location corresponding to key but to a random position ( map.end() ).
key
map.end()
Sorry, something went wrong.
No branches or pull requests
compute/include/boost/compute/detail/lru_cache.hpp
Line 102 in 36c8913
Since i is a valid iterator, we can replace this call with.
m_map[key] = std::make_pair(value, j);
with
i->second = std::make_pair(value, j);
avoiding the second map search.
The text was updated successfully, but these errors were encountered: