Skip to content

Glossary: C++ Beyond the Basics

By value

Also written: pass by value, take by value

Passing or storing a copy of an object (or one moved in) rather than a reference. Passing a big vector by value to a function can be slow unless it's a sink parameter.

Where the book teaches it

Related terms

Sink parameterObject slicing