Constructors
Declared in <absl/random/bit_gen_ref.h>
Copy constructor.
constexpr
BitGenRef(BitGenRef const& other) = default;
» more...
Move constructor.
constexpr
BitGenRef(BitGenRef&& other) = default;
» more...
Constructs a reference to the given bit generator.
template<
typename URBGRef,
typename URBG = 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);
» more...
Constructs a reference to the given mockable bit generator.
template<
typename URBGRef,
typename URBG = 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);
» more...
| Name | Description |
|---|---|
| other | The source object. |
| gen | The underlying bit generator to reference. It must outlive this reference. |