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
28
template
<
typename
T>
29
bool
ListContains
(
const
std::list<T> &values,
const
T &value) {
30
return
std::find(values.begin(), values.end(), value) != values.end();
31
}
ListContains
bool ListContains(const std::list< T > &values, const T &value)
Report whether a list holds a value.
Definition
listcontains.h:29
src
os
listcontains.h
Generated by
1.15.0