/usr/include/pbseq/pbdata/VectorUtils.hpp is in libpbdata-dev 0~20161219-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #ifndef _BLASR_VECTOR_UTILS_HPP_
#define _BLASR_VECTOR_UTILS_HPP_
#include <vector>
// Clear all memory allocated by this vector
template <typename T>
void ClearMemory(std::vector<T> & vt) {
// Create an empty vector
std::vector<T> emptyVector;
// First clear the content
vt.clear();
// Then swap vt with the empty vector
vt.swap(emptyVector);
}
#endif // _BLASR_VECTOR_UTILS_HPP_
|