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:653
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Size indexOf(const ContainerType &cont, const typename ContainerType::value_type &val)
Definition: EnumHelpers.h:19
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19