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

Method at

include/tabulate/string_view_lite.hpp:656–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 }
655
656 nssv_constexpr14 const_reference at( size_type pos ) const
657 {
658#if nssv_CONFIG_NO_EXCEPTIONS
659 assert( pos < size() );
660#else
661 if ( pos >= size() )
662 {
663 throw std::out_of_range("nonstd::string_view::at()");
664 }
665#endif
666 return data_at( pos );
667 }
668
669 nssv_constexpr const_reference front() const { return data_at( 0 ); }
670 nssv_constexpr const_reference back() const { return data_at( size() - 1 ); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected