| 105 | |
| 106 | template <typename Container, typename ValueType> |
| 107 | int insert( |
| 108 | Container& c, |
| 109 | const ValueType& v) |
| 110 | { |
| 111 | if (c.find(v) == c.end()) { |
| 112 | if (c.insert(v).second) { |
| 113 | return 0; |
| 114 | } |
| 115 | |
| 116 | return -1; |
| 117 | } |
| 118 | |
| 119 | return 1; |
| 120 | } |
| 121 | |
| 122 | template <typename Container, typename ValueType> |
| 123 | int remove( |
no test coverage detected