1*4440fb50SKudo Chien #pragma once
2*4440fb50SKudo Chien 
3*4440fb50SKudo Chien #include <algorithm>
4*4440fb50SKudo Chien 
5*4440fb50SKudo Chien namespace reanimated {
6*4440fb50SKudo Chien namespace collection {
7*4440fb50SKudo Chien 
8*4440fb50SKudo Chien template <class CollectionType, class ValueType>
contains(CollectionType & collection,const ValueType & value)9*4440fb50SKudo Chien inline bool contains(CollectionType &collection, const ValueType &value) {
10*4440fb50SKudo Chien   return collection.find(value) != collection.end();
11*4440fb50SKudo Chien }
12*4440fb50SKudo Chien 
13*4440fb50SKudo Chien } // namespace collection
14*4440fb50SKudo Chien } // namespace reanimated
15