[#boost-urls-grammar-ref-01]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::ref
:relfileprefix: ../../../
:mrdocs:

`ref` overloads

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/charset.hpp#L260[boost&sol;url&sol;grammar&sol;charset&period;hpp]&gt;`

Return a reference to a character set


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:boost/urls/grammar/CharSet.adoc[CharSet] CS&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:boost/urls/grammar/ref-03.adoc[ref](CS const& cs) noexcept
requires is&lowbar;charset&lt;CS&gt;&colon;&colon;value &amp;&amp;
    ! std&colon;&colon;is&lowbar;same&lt;CS,
        implementation&lowbar;defined&colon;&colon;charset&lowbar;ref&lt;CS&gt; &gt;&colon;&colon;value;
----

[.small]#xref:boost/urls/grammar/ref-03.adoc[_» more&period;&period;&period;_]#

Return a reference to a rule


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:boost/urls/grammar/Rule.adoc[Rule] R&gt;
constexpr
&sol;&ast; implementation-defined &ast;&sol;
xref:boost/urls/grammar/ref-0c.adoc[ref](R const& r) noexcept
requires is&lowbar;rule&lt;R&gt;&colon;&colon;value &amp;&amp;
    ! std&colon;&colon;is&lowbar;same&lt;R,
        implementation&lowbar;defined&colon;&colon;rule&lowbar;ref&lt;R&gt; &gt;&colon;&colon;value;
----

[.small]#xref:boost/urls/grammar/ref-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

* The character set as a reference type
* The rule as a reference type

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *CharSet*
| The character set type
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cs*
| The character set to use
| *r*
| The rule to use
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
