:relfileprefix: ../../ [#boost-urls-relative_ref_rule] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::relative_ref_rule Rule for relative-ref === Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr pass:q[_implementation-defined_] relative_ref_rule = {}; ---- === Description [,cpp] ---- using value_type = url_view; ---- === Rules are used with the function xref:boost/urls/grammar/parse-02.adoc[grammar::parse] . [,cpp] ---- system::result< url_view > rv = grammar::parse( "images/dot.gif?v=hide#a", relative_ref_rule ); ---- [,cpp] ---- relative-ref = relative-part [ "?" query ] [ "#" fragment ] ---- * link:https://datatracker.ietf.org/doc/html/rfc3986#section-4.2[4.2. Relative Reference (rfc3986)] === See Also xref:boost/urls/grammar/parse-02.adoc[grammar::parse] , xref:boost/urls/parse_relative_ref.adoc[parse_relative_ref] , xref:boost/urls/url_view.adoc[url_view] .