![]() |
MySQL 9.6.0
Source Code Documentation
|
Common base class for the Repeat and Repeat_optional classes, providing functionality for representing the upper bound on the number of repetitions. More...
#include <repeat.h>
Public Member Functions | |
| Repeat_base (std::integral auto max) | |
| Construct a new object with the given maximum. More... | |
| std::size_t | max () const |
| Return the maximum number of repetitions, inclusive. More... | |
Static Public Member Functions | |
| static Repeat_optional_t | optional () |
| Return a Repeat_optional object representing zero or one instances. More... | |
| static Repeat_optional_t | at_most (std::integral auto max_arg) |
Return a Repeat object representing between 0 and min_arg repetitions. More... | |
| static Repeat_optional_t | any () |
| Return a Repeat_optional object representing any number of repetitions from 0 and up (bounded only by std::numeric_limits). More... | |
Private Attributes | |
| std::size_t | m_max |
| The maximum number of repetitions, inclusive. More... | |
Common base class for the Repeat and Repeat_optional classes, providing functionality for representing the upper bound on the number of repetitions.
Provides a constructor that takes an integral value for the upper bound on the number of repetitions, as well as several static factory functions for creating Repeat_optional objects with specific repetition ranges.
|
inlineexplicit |
Construct a new object with the given maximum.
|
inlinestatic |
Return a Repeat_optional object representing any number of repetitions from 0 and up (bounded only by std::numeric_limits).
|
inlinestatic |
Return a Repeat object representing between 0 and min_arg repetitions.
|
inline |
Return the maximum number of repetitions, inclusive.
|
inlinestatic |
Return a Repeat_optional object representing zero or one instances.
|
private |
The maximum number of repetitions, inclusive.