LogDoctor/logdoctor/utilities/vectors.h
Valentino Orlandi 4e55805df4
Fix
Fixed VecOps documentation
2022-11-21 08:24:12 +01:00

27 lines
489 B
C++

#ifndef VECOPS_H
#define VECOPS_H
#include <string>
#include <vector>
//! VecOps
/*!
Utilities for the vectors
*/
template <typename T>
class VecOps
{
public:
VecOps();
//! Checks if a vector contains an element
/*!
\param list The target vector
\param flag The element to search for
\return Whether the list does contain the flag or not
*/
static const bool contains( const std::vector<T>& list, const T& flag );
};
#endif // VECOPS_H