wavelength 1.0.0
Loading...
Searching...
No Matches
listcontains.h
Go to the documentation of this file.
1#pragma once
2
3#include <algorithm>
4#include <list>
5
28template <typename T>
29bool ListContains(const std::list<T> &values, const T &value) {
30 return std::find(values.begin(), values.end(), value) != values.end();
31}
bool ListContains(const std::list< T > &values, const T &value)
Report whether a list holds a value.
Definition listcontains.h:29