:relfileprefix: ../../../../
[#991AA2F0864E397D312C51DEDBC590F19C2F9A48]

= Function string_view_base::substr

pass:v,q[Return a view to part of the string]


== Synopsis

Declared in header `</boost/url/grammar/string_view_base.hpp#L343[boost/url/grammar/string_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
string_view
substr(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos = 0,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n = core::string_view::npos) const;
----

== Description

pass:v,q[See `core::string_view::substr`]



== Return Value

* `string_view` 


== Parameters

|===
| Name | Type 

| *pos*
| `size_type`

| *n*
| `size_type`

|===



