MCPcopy Create free account
hub / github.com/p-ranav/tabulate / to_string_view

Function to_string_view

include/tabulate/string_view_lite.hpp:142–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141template< class CharT, class Traits, class Allocator >
142std::basic_string_view<CharT, Traits>
143to_string_view( std::basic_string<CharT, Traits, Allocator> const & s )
144{
145 return std::basic_string_view<CharT, Traits>( s.data(), s.size() );
146}
147
148// Literal operators sv and _sv:
149

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected