-
Notifications
You must be signed in to change notification settings - Fork 15
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 other types than just vector #15
Conversation
d845a6e
to
e3c6069
Compare
src/bits/insert_wrapper.h
Outdated
#include <set> | ||
#include <unordered_map> | ||
#include <unordered_set> | ||
#include <vector> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop all these includes?
Also you shouldn't be including experimental traits...
3c15123
to
118f4ba
Compare
README.md
Outdated
|
||
``` | ||
std::map<int, std::string> map{{1, "abc"}, {2, "def"}, {3, "hij"}, {4, "klm"}}; | ||
auto doubleKeys = [](const auto& &item) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nag: too many &
src/bits/insert_wrapper.h
Outdated
template <typename Container> | ||
auto insert_wrapper( | ||
Container &c, | ||
std::enable_if_t<std::experimental::is_detected_v<has_push_back, Container, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct and everything, but I'm not sure that you should be using <experimental>
stuff, I'm not even sure which compiler(s) have it.
If you need is_detected, that's reimplementable in just a few lines of code.
For example filtered or transformed on a map or a set Pending are support for QHash and QMap.
118f4ba
to
2ce69ab
Compare
For example filtered or transformed on a map or a set
Pending are support for QHash and QMap.