[#absl-BitGenRef-2constructor-08] = xref:absl.adoc[absl]::xref:absl/BitGenRef.adoc[BitGenRef]::BitGenRef :relfileprefix: ../../ :mrdocs: Constructs a reference to the given mockable bit generator. == Synopsis Declared in `<absl/random/bit_gen_ref.h>` [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) BitGenRef(URBGRef&& gen); ---- == Parameters [cols="1,4"] |=== | Name| Description | *gen* | The underlying bit generator to reference. It must outlive this reference. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#