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 Contains and fix clients. #1251

Merged
merged 2 commits into from
Mar 12, 2017
Merged

Conversation

pleroy
Copy link
Member

@pleroy pleroy commented Mar 12, 2017

No description provided.

template <class Collection>
bool Contains(Collection const& collection,
typename Collection::key_type const key) {
return collection.count(key) > 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is templatized on the Collection, it may be fed a multimap; perhaps use find?

@eggrobin eggrobin added the LGTM label Mar 12, 2017
@pleroy pleroy merged commit 266ebbd into mockingbirdnest:Cardano Mar 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants