https://github.com/ekg/freebayes
Tip revision: 60850dc518fc453622cbb40ad6dd9f67644ed859 authored by Pjotr Prins on 16 December 2020, 10:18:06 UTC
Disable cmake, but leave the file with a message
Disable cmake, but leave the file with a message
Tip revision: 60850dc
Sum.h
#ifndef __SUM_H
#define __SUM_H
#include <vector>
template <class T>
T sum(const std::vector<T>& v) {
T result = 0;
for (typename std::vector<T>::const_iterator i = v.begin(); i != v.end(); ++i) {
result += *i;
}
return result;
}
#endif