:relfileprefix: ../../../
[#boost-urls-decode_view-2constructor]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/decode_view.adoc[pass:[decode_view]]::decode_view

  


Constructor



=== Synopsis
  

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
xref:boost/urls/decode_view/2constructor-07.adoc[pass:[decode_view]]() noexcept = default;
----

[source,cpp,subs="verbatim,macros,-callouts"]
----
explicit
xref:boost/urls/decode_view/2constructor-03.adoc[pass:[decode_view]](
    xref:boost/urls/pct_string_view.adoc[pct_string_view] s,
    xref:boost/urls/encoding_opts.adoc[encoding_opts] opt = = {}) noexcept;
----
  
=== Description


Default-constructed views represent
empty strings.
[,cpp]
----
decode_view ds;
----
[,cpp]
----
this->empty() == true
----

=== Constant.

=== Throws nothing.


=== Exceptions

|===
| Name | Thrown on

| `The`
| 
string contains an invalid percent encoding.

|===


=== Parameters

|===
| Name | Description 

| *s*
| 
A percent-encoded string that has
already been validated.

| *opt*
| 
The options for decoding. If
this parameter is omitted, the default
options are used.

|===




