MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / reference

Function reference

code/3/3.6.cpp:11–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <iostream>
10#include <utility>
11void reference(int& v) {
12 std::cout << "左值引用" << std::endl;
13}
14void reference(int&& v) {
15 std::cout << "右值引用" << std::endl;
16}

Callers 1

passFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected