absl::BitGenRef::BitGenRef

Constructors

Synopses

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...

Parameters

NameDescription
otherThe source object.
genThe underlying bit generator to reference. It must outlive this reference.