MySQL 9.6.0
Source Code Documentation
mysql::strconv::Is_parse_options_optional Concept Reference

True for any kind of parse options for which get_repeat() returns Repeat_optional, i.e., it is known at compile-time that a string of length 0 matches, and thus parse error is impossible. More...

#include <parse_options.h>

Concept definition

template<class Test>
requires(Test opt) {
{ get_repeat(opt) } -> std::same_as<Repeat_optional>;
}
True for any kind of parse options for which get_repeat() returns Repeat_optional,...
Definition: parse_options.h:143
True for any kind of parse options: Format, Repeat, Checker, or Compound_parse_options.
Definition: parse_options.h:126
auto get_repeat(const Is_parse_options auto &)
Return the Repeat component of any parse options, if it exists; otherwise a default-constructed Repea...
Definition: parse_options.h:162

Detailed Description

True for any kind of parse options for which get_repeat() returns Repeat_optional, i.e., it is known at compile-time that a string of length 0 matches, and thus parse error is impossible.

Functions taking such an argument can may declared without [[nodiscard]] (if no other errors are possible either).