/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
ACLIntRange::match(int i)
{
RangeType const toFind(i, i+1);
- for (std::list<RangeType>::const_iterator iter = ranges.begin(); iter != ranges.end(); ++iter) {
- const RangeType & element = *iter;
+ for (const auto &element : ranges) {
RangeType result = element.intersection(toFind);
-
if (result.size())
return true;
}
ACLIntRange::dump() const
{
SBufList sl;
- for (std::list<RangeType>::const_iterator iter = ranges.begin(); iter != ranges.end(); ++iter) {
+ for (const auto &element : ranges) {
SBuf sb;
- const RangeType & element = *iter;
if (element.size() == 1)
sb.Printf("%d", element.start);