MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/StringViewLiteralTest.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <iostream>
3
4int main()
5{
6 using namespace std::literals;
7
8 std::string_view s1 = "abc\0\0def";
9 std::string_view s2 = "abc\0\0def"sv;
10 std::cout << "s1: " << s1.size() << " \"" << s1 << "\"\n";
11 std::cout << "s2: " << s2.size() << " \"" << s2 << "\"\n";
12}

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected