MCPcopy Create free account
hub / github.com/Apress/beginning-rust-2e / main

Function main

Source Code/22-10.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <iostream>
4#include <string>
5int main() {
6 auto s1 = std::string { "abcd" };
7 const auto s2 = s1;
8 const auto s3 = move(s1);
9 std::cout << s1.size() << " "
10 << s2.size() << " " << s3.size();
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected