Skip to content

Commit

Permalink
Document BOOST_PARSER_SUBRANGE in Configuration and Optional Features.
Browse files Browse the repository at this point in the history
Fixes #73.
  • Loading branch information
tzlaine committed Jan 20, 2024
1 parent 591ac99 commit 52e8b18
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/intro.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ usable optional, you must be able to assign to `O`, and `O` must have an
`operator*` that returns the stored value, or a (possibly cv-qualified)
reference to the stored value.

_Parser_ uses `std::ranges::subrange` extensively. However, there is no C++17
equivalent. So, there is a `boost::parser::subrange` for C++17 builds. To
switch between these transparently in the code, while keeping CTAD
operational, _Parser_ defines _SUBRNG_. This is the name of the template, so
if you use it in your own code you would use it like `_SUBRNG_<I>` to
instantiate it.

[endsect]

[section This Library's Relationship to Boost.Spirit]
Expand Down
1 change: 1 addition & 0 deletions doc/parser.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

[def _RULES_ [macroref BOOST_PARSER_DEFINE_RULES `BOOST_PARSER_DEFINE_RULES`]]
[def _AGGR_SIZE_ [macroref BOOST_PARSER_MAX_AGGREGATE_SIZE `BOOST_PARSER_MAX_AGGREGATE_SIZE`]]
[def _SUBRNG_ [macroref BOOST_PARSER_SUBRANGE `BOOST_PARSER_SUBRANGE`]]

[def __p_ [globalref boost::parser::_p `_p`]]

Expand Down

0 comments on commit 52e8b18

Please sign in to comment.