MCPcopy Create free account
hub / github.com/boostorg/parser / base

Function base

include/boost/parser/parser.hpp:6027–6039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6025 numeric parsers like `int_` and `uint_`. */
6026 template<int Radix2>
6027 constexpr auto base() const noexcept
6028 {
6029 if constexpr (detail::has_base_member_function_template_v<
6030 parser_type>) {
6031 return parser::parser_interface{
6032 parser_.template base<Radix2>()};
6033 } else {
6034 static_assert(
6035 detail::has_base_member_function_template_v<parser_type>,
6036 "Only certain parsers have a .base<>() member function. "
6037 "This is not one of them.");
6038 }
6039 }
6040
6041 /** Returns a new `parser_interface` constructed from
6042 `parser_.digits<Digits>()`. Note that this only works for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected