:relfileprefix: ../../../
[#667DEA785409D5F8AB86BDA44EE3D7A980ECB7B5]

= Function pct_string_view::pct_string_view

pass:v,q[Constructor]


== Synopsis

Declared in header `</boost/url/pct_string_view.hpp#L210[boost/url/pct_string_view.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
pct_string_view(
    const char* s,
    size_t len);
----

== Description

pass:v,q[The newly constructed string references] pass:v,q[the specified character buffer. Ownership]
pass:v,q[is not transferred.]

=== Postconditions
[,cpp]
----
this->data() == s && this->size() == len
----

=== Complexity
pass:v,q[Linear in `len`.]

=== Exception Safety
pass:v,q[Exceptions thrown on invalid input.]



== Return Value

* `void` 


== Parameters

|===
| Name | Type 

| *s*
| ``

| *len*
| `size_t`

|===



