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

Method copy

include/tabulate/string_view_lite.hpp:698–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696 // 24.4.2.6 String operations:
697
698 size_type copy( CharT * dest, size_type n, size_type pos = 0 ) const
699 {
700#if nssv_CONFIG_NO_EXCEPTIONS
701 assert( pos <= size() );
702#else
703 if ( pos > size() )
704 {
705 throw std::out_of_range("nonstd::string_view::copy()");
706 }
707#endif
708 const size_type rlen = (std::min)( n, size() - pos );
709
710 (void) Traits::copy( dest, data() + pos, rlen );
711
712 return rlen;
713 }
714
715 nssv_constexpr14 basic_string_view substr( size_type pos = 0, size_type n = npos ) const
716 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected