std::basic_string_view::to_string, std::basic_string_view::operator basic_string
From cppreference.com
                    
                                        
                    < cpp | string | basic string view
                    
                                                            
                    | template<class Allocator = allocator<CharT>> std::basic_string<CharT, Traits, Allocator> | (since C++17) | |
| template<class Allocator> explicit operator std::basic_string<CharT, Traits, Allocator>() const; | (since C++17) | |
Creates a basic_string with a copy of the content of the current view.
| Contents | 
[edit] Template parameters
| Allocator | - | Allocatortype used to allocate internal storage | 
[edit] Parameters
| a | - | Allocator instance to use for allocating the new string | 
[edit] Return value
A std::basic_string containing a copy of the characters of the current view.
[edit] Complexity
Linear in size()