44 template <
class ContainerType>
45 Size indexOf(
const ContainerType& cont,
const typename ContainerType::value_type& val)
47 auto it =
std::find(cont.begin(), cont.end(), val);
52 return std::distance(cont.begin(), it);
Element could not be found exception.
Definition: Exception.h:670
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Size indexOf(const ContainerType &cont, const typename ContainerType::value_type &val)
Definition: EnumHelpers.h:45
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool find(TFinder &finder, const Pattern< TNeedle, FuzzyAC > &me, PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:886