#include <iterator>
#include <type_traits>
![](EnumIterator_8h__incl.png)
![](EnumIterator_8h__dep__incl.png)
Go to the source code of this file.
Classes | |
class | EnumIteratorBase< EnumType > |
class | EnumIterator< EnumType > |
class | ReverseEnumIterator< EnumType > |
class | EnumRangeT< EnumType > |
class | WholeEnum< EnumType > |
Functions | |
template<typename EnumType > | |
EnumRangeT< EnumType > | EnumRange (EnumType begin, EnumType one_past_end) |
template<auto First, auto Last, class F > | |
constexpr void | ConstexprForEnum (F &&f) |
Function Documentation
◆ ConstexprForEnum()
|
constexpr |
Compile-time iteration of sequential enum values from First to Last, inclusive. The given function is called once on each iteration, with the current enum value as an argument.
Definition at line 232 of file EnumIterator.h.
◆ EnumRange()
EnumRangeT<EnumType> EnumRange | ( | EnumType | begin, |
EnumType | one_past_end | ||
) |
Generate a continuous range of an enum for range-for expressions
convenience function to deduce the right type for instantiating EnumRangeT. See EnumRangeT for more detailed documentation and caveats.
Typical use:
Definition at line 188 of file EnumIterator.h.
Referenced by TestEnumIterator::testRangeForRange(), and ProxyProtocol::Header::toMime().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products