--- layout: method title: copy_on_write owner: sean-parent brief: Constructor tags: - method defined-in-file: stlab/copy_on_write.hpp is_ctor: true overloads: copy_on_write(): description: Default constructor return: __OPTIONAL__ signature_with_names: copy_on_write() copy_on_write(const copy_on_write &): arguments: - description: __OPTIONAL__ name: x type: const copy_on_write & description: Copy constructor return: __OPTIONAL__ signature_with_names: copy_on_write(const copy_on_write & x) copy_on_write(copy_on_write &&): arguments: - description: __OPTIONAL__ name: x type: copy_on_write && description: Move constructor return: __OPTIONAL__ signature_with_names: copy_on_write(copy_on_write && x) "template \ncopy_on_write(U &&, V &&, Args &&...)": arguments: - description: __OPTIONAL__ name: x type: U && - description: __OPTIONAL__ name: y type: V && - description: __OPTIONAL__ name: args type: Args &&... description: Constructor return: __OPTIONAL__ signature_with_names: "template \ncopy_on_write(U && x, V && y, Args &&... args)" "template \ncopy_on_write(U &&, disable_copy)": arguments: - description: __OPTIONAL__ name: x type: U && - description: __OPTIONAL__ name: unnamed-1 type: disable_copy unnamed: true description: Constructor return: __OPTIONAL__ signature_with_names: "template \ncopy_on_write(U && x, disable_copy)" ---