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:676
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