18 template <
class ContainerType>
19 Size indexOf(
const ContainerType& cont,
const typename ContainerType::value_type& val)
21 auto it = std::find(cont.begin(), cont.end(), val);
26 return std::distance(cont.begin(), it);
Element could not be found exception.
Definition: Exception.h:650
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
Size indexOf(const ContainerType &cont, const typename ContainerType::value_type &val)
Definition: EnumHelpers.h:19
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22