[#boost-urls-decode_view-2constructor] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode_view]::decode_view :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L161[boost/url/decode_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/decode_view/2constructor-07.adoc[decode_view]() noexcept = default; ---- [.small]#xref:boost/urls/decode_view/2constructor-07.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:boost/urls/decode_view/2constructor-03.adoc[decode_view]( xref:boost/urls/pct_string_view.adoc[pct_string_view] s, xref:boost/urls/encoding_opts.adoc[encoding_opts] opt = {}) noexcept; ---- [.small]#xref:boost/urls/decode_view/2constructor-03.adoc[_» more..._]# == Description Default‐constructed views represent empty strings. === Example [,cpp] ---- decode_view ds; ---- === Postconditions [,cpp] ---- this->empty() == true ---- === Complexity Constant. === Exception Safety Throws nothing. == Parameters |=== | Name | Description | *s* | A percent‐encoded string that has already been validated. Implicit conversion from other string types is supported but may throw exceptions. | *opt* | The options for decoding. If this parameter is omitted, the default options are used. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#