Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #ifndef FILTMMAP_H
  2. #define FILTMMAP_H
  3.  
  4. #include <map>
  5.  
  6. template<class Key, class Value, class Filter>
  7. class map_filter_view {
  8.     std::map<Key, Value> container;
  9.     Filter filter;
  10.  
  11. public:
  12.     map_filter_view(std::map<Key, Value> c) : container(c) {
  13.     }
  14.  
  15.     int count(const Key& key) const {
  16.         return 0;
  17.     }
  18.  
  19.     int size() const {
  20.         return 0;
  21.     }
  22. };
  23.  
  24. #endif // FILTMMAP_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement