[#absl-BitGenRef-2constructor-0f] = xref:absl.adoc[absl]::xref:absl/BitGenRef.adoc[BitGenRef]::BitGenRef :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<absl/random/bit_gen_ref.h>` Copy constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/BitGenRef/2constructor-06.adoc[BitGenRef](xref:absl/BitGenRef.adoc[BitGenRef] const& other) = default; ---- [.small]#xref:absl/BitGenRef/2constructor-06.adoc[_» more..._]# Move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:absl/BitGenRef/2constructor-0b.adoc[BitGenRef](xref:absl/BitGenRef.adoc[BitGenRef]&& other) = default; ---- [.small]#xref:absl/BitGenRef/2constructor-0b.adoc[_» more..._]# Constructs a reference to the given bit generator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename URBGRef, typename URBG = xref:absl/remove_cvref_t.adoc[absl::remove_cvref_t<URBGRef>]> requires (!std::is_same_v<URBG, BitGenRef> && !std::is_base_of_v<BitGenRef, URBG> && !HasConversionOperator<URBG>::value && random_internal::is_urbg<URBG>::value && !RandomMockingAccess::HasInvokeMock<URBG>::value) xref:absl/BitGenRef/2constructor-04.adoc[BitGenRef](URBGRef&& gen); ---- [.small]#xref:absl/BitGenRef/2constructor-04.adoc[_» more..._]# Constructs a reference to the given mockable bit generator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename URBGRef, typename URBG = xref:absl/remove_cvref_t.adoc[absl::remove_cvref_t<URBGRef>]> requires (!std::is_same_v<URBG, BitGenRef> && !std::is_base_of_v<BitGenRef, URBG> && !HasConversionOperator<URBG>::value && random_internal::is_urbg<URBG>::value && RandomMockingAccess::HasInvokeMock<URBG>::value) xref:absl/BitGenRef/2constructor-08.adoc[BitGenRef](URBGRef&& gen); ---- [.small]#xref:absl/BitGenRef/2constructor-08.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *other* | The source object. | *gen* | The underlying bit generator to reference. It must outlive this reference. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#