mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
20 lines
247 B
C++
20 lines
247 B
C++
#include <cstdio>
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
void foo(int i, int j) {
|
|
printf("%d %d\n", i, j);
|
|
}
|
|
|
|
int main() {
|
|
|
|
auto i = make_unique<int>(3);
|
|
|
|
vector<int> v{1,2};
|
|
|
|
foo(*i, v.back()); // step into
|
|
}
|
|
|