: , , . const amp;, - , , FileOptions, , const &, .
, . , , (, , , ), , , .
& , , , , , const & . const & , . int, , , 10 int, .
Another use is for const & instead of a value for objects that cannot be easily copied. For example, a mutex cannot be easily copied. Or, an object that provides exclusive access to a file may, by definition, not be copied meaningfully.
source
share