ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Container.H
Go to the documentation of this file.
1 #ifndef ERF_CONTAINER_H
2 #define ERF_CONTAINER_H
3 
4 template<typename V, typename T>
5 bool containerHasElement (const V& iterable, const T& query) {
6  return std::find(iterable.begin(), iterable.end(), query) != iterable.end();
7 }
8 
9 #endif
bool containerHasElement(const V &iterable, const T &query)
Definition: ERF_Container.H:5
@ T
Definition: ERF_IndexDefines.H:110
@ V
Definition: ERF_IndexDefines.H:109