9 template <
typename T,
typename Key,
typename Value>
10 typename std::enable_if<std::is_convertible<T, Key>::value,
bool>::type
11 KeyExists(T key,
const std::map<Key, Value> &container) {
12 return !(container.find(static_cast<Key>(key)) ==
end(container));
16 template <
typename T,
typename Value>
17 typename std::enable_if<std::is_convertible<T, size_t>::value,
bool>::type
18 KeyExists(T key,
const std::vector<Value> &container) {
19 return container.size() >
static_cast<size_t>(key);
SingleTreeChain::EventItr end(SingleTreeChain &chain)
std::enable_if< std::is_convertible< T, Key >::value, bool >::type KeyExists(T key, const std::map< Key, Value > &container)