| 48 | /// @return `true` if the container contains the given value, `false` otherwise |
| 49 | template <typename Container, typename T> |
| 50 | constexpr bool contains(Container container, const T& value, size_t* index = nullptr) |
| 51 | { |
| 52 | return findIf( |
| 53 | container.begin(), container.end(), [&](auto& item) { return item == value; }, index) != container.end(); |
| 54 | } |
| 55 | |
| 56 | //! @} |
| 57 |