Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "helper.h"
- #include <list>
- using namespace std;
- int main(int argc, const char * argv[]) {
- //switch between list and vector
- list<int> a = {0, 1};
- list<char> b = {'a', 'b'};
- func(a, b);
- return 0;
- }
- template <class C1, class C2>
- void func(C1 &a, C2 &b)
- #include <list>
- template <class C1, class C2>
- void func (C1 &a, C2 &b)
- {
- //do stuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement