ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_Container.H File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename V , typename T >
bool containerHasElement (const V &iterable, const T &query)
 

Function Documentation

◆ containerHasElement()

template<typename V , typename T >
bool containerHasElement ( const V &  iterable,
const T &  query 
)
5  {
6  return std::find(iterable.begin(), iterable.end(), query) != iterable.end();
7 }

Referenced by ERF::appendPlotVariables(), LineSampler::get_line_mfs(), LineSampler::LineSampler(), ERF::setPlotVariables(), and ERF::WritePlotFile().

Here is the caller graph for this function: