Lines Matching defs:value
60 static constexpr bool value = decltype(test<Collection>(nullptr))::value;
65 // Test to see if a collection like a vector contains a particular value.
66 // Returns true if the value is in the collection.
71 typename std::enable_if<!internal::HasKeyType<Collection>::value,
73 bool ContainsValue(const Collection& collection, const Value& value) {
74 return std::find(std::begin(collection), std::end(collection), value) !=
143 const Value& value) {
144 container.erase(std::remove(container.begin(), container.end(), value),
156 void Erase(std::deque<T, Allocator>& container, const Value& value) {
157 container.erase(std::remove(container.begin(), container.end(), value),
168 void Erase(std::vector<T, Allocator>& container, const Value& value) {
169 container.erase(std::remove(container.begin(), container.end(), value),
180 void Erase(std::forward_list<T, Allocator>& container, const Value& value) {
183 // value type before invoking the == operator.
184 container.remove_if([&](const T& cur) { return cur == value; });
193 void Erase(std::list<T, Allocator>& container, const Value& value) {
195 // types and does not force a conversion to the container's value type before
197 container.remove_if([&](const T& cur) { return cur == value; });