Skip to content
New issue

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

Add support for range-based enumeration in ContextMap #460

Merged
merged 1 commit into from
Mar 24, 2015

Conversation

codemercenary
Copy link
Contributor

Allows users to avoid the clumsy ForEach syntax and also reduces the potential for deadlocks. Users can now enumerate ContextMap<T> in the following way:

ContextMap<std::string> myMap;
for(auto& cur : myMap) {
    ...
}

@codemercenary codemercenary force-pushed the feature-enumcontextmap branch from 0973a46 to 10b5e82 Compare March 24, 2015 18:40
Allows users to avoid the clumsy ForEach syntax and also reduces the potential for deadlocks.  Users can now enumerate `ContextMap<T>` in the following way:

    ContextMap<std::string> myMap;
    for(auto& cur : myMap) {
        ...
    }
@codemercenary codemercenary force-pushed the feature-enumcontextmap branch from 10b5e82 to c8c712f Compare March 24, 2015 18:44
jnguyen75 added a commit that referenced this pull request Mar 24, 2015
Add support for range-based enumeration in ContextMap
@jnguyen75 jnguyen75 merged commit 60f231c into develop Mar 24, 2015
@jnguyen75 jnguyen75 deleted the feature-enumcontextmap branch March 24, 2015 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants