| 18 | /// Check whether a reference points to an element in a container |
| 19 | template <typename RefType, typename ContainerType> |
| 20 | static bool isValidReference_(RefType ref, ContainerType& container) |
| 21 | { |
| 22 | for (auto it = container.begin(); it != container.end(); ++it) |
| 23 | { |
| 24 | if (ref == it) return true; |
| 25 | } |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | /// Check validity of a reference based on a look-up table of addresses |
| 30 | template <typename RefType> |
no test coverage detected