# 值作为参数

* 调用拷贝操作符，创造一个副本
* 函数内部的操作不会影响到原始的对象
* 如果对象很大或包含动态内存，拷贝可能会带来性能开销


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tysun.gitbook.io/c++/can-shu-he-fan-hui-zhi-de-chuan-di-fang-shi/zhi-zuo-wei-can-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
