[#boost-urls-grammar-lut_chars-2constructor-074]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/lut_chars.adoc[lut&lowbar;chars]::lut&lowbar;chars
:relfileprefix: ../../../../
:mrdocs:

Constructor

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/lut_chars.hpp#L188[boost&sol;url&sol;grammar&sol;lut&lowbar;chars&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
lut&lowbar;chars(char const* s) noexcept;
----

== Description

This function constructs a character set which has as members, all of the characters present in the null&hyphen;terminated string `s`&period;

== Example

[,cpp]
----
constexpr lut_chars digits = "0123456789";
----
== Complexity

Linear in `&colon;&colon;strlen(s)`, or constant if `s` is a constant expression&period;

== Exception Safety

Throws nothing&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| A null&hyphen;terminated string&period;
|===


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