std::xor_combine(3)
hii bestie π you're on the Library Functions Manual page for std::xor_combine(3) in libstdc++. It's a Doxygen-generated page for a random number generator adaptor class, and every signature, line number, file path, friend, typedef, parameter, and return value is staying right here β no cap, no skipping π«Άβ¨
πΈ NAME πΈ
std::xor_combine -
(Yes, that's literally the whole NAME line. It's giving mysterious main character energy π )
β¨ SYNOPSIS β¨
Okay so here's the full synopsis lineup, angle brackets and all π Buckle up.
π Public Types π
typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) >
_Result_type1
typedef _UniformRandomNumberGenerator1 base1_type
typedef _UniformRandomNumberGenerator2 base2_type
typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) >
_Result_type2::__type result_type
π Public Member Functions π
const base1_type & base1 () const
const base2_type & base2 () const
result_type max () const
result_type min () const
result_type operator() ()
template<class _Gen > void seed (_Gen &__g)
void seed ()
typedef __gnu_cxx::__conditional_type<(sizeof(_Result_type1) > sizeof
(_Result_type2))
template<class _Gen > xor_combine (_Gen &__g)
xor_combine (unsigned long __s)
xor_combine (const base1_type &__rng1, const base2_type &__rng2)
π¦ Static Public Attributes π¦
static const int shift1
static const int shift2
π Friends π
bool operator!= (const xor_combine &__lhs, const xor_combine &__rhs)
template<class _UniformRandomNumberGenerator11 , int __s11, class
_UniformRandomNumberGenerator21 , int __s21, typename _CharT ,
typename _Traits > std::basic_ostream< _CharT, _Traits > &
operator<< (std::basic_ostream< _CharT, _Traits > &__os, const
xor_combine< _UniformRandomNumberGenerator11, __s11,
_UniformRandomNumberGenerator21, __s21 > &__x)
bool operator== (const xor_combine &__lhs, const xor_combine &__rhs)
template<class _UniformRandomNumberGenerator11 , int __s11, class
_UniformRandomNumberGenerator21 , int __s21, typename _CharT ,
typename _Traits > std::basic_istream< _CharT, _Traits > &
operator>> (std::basic_istream< _CharT, _Traits > &__is,
xor_combine< _UniformRandomNumberGenerator11, __s11,
_UniformRandomNumberGenerator21, __s21 > &__x)
π§ Detailed Description π§
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> class std::xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 >
This is a random number generator adaptor class whose whole thing is combining two random number generator engines into a single output sequence. Iconic, honestly π
Definition at line 1284 of file tr1_impl/random.
π¦ Member Typedef Documentation π¦
π base1_type π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> typedef
_UniformRandomNumberGenerator1 std::xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 >::base1_type
The type of the first underlying generator engine.
Definition at line 1293 of file tr1_impl/random.
π base2_type π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> typedef
_UniformRandomNumberGenerator2 std::xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 >::base2_type
The type of the second underlying generator engine.
Definition at line 1295 of file tr1_impl/random.
π₯ Member Function Documentation π₯
β operator() () [inline] β
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> result_type std::xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 >::operator() () [inline]
Gets the next random number in the sequence.
Definition at line 1365 of file tr1_impl/random.
π the conditional typedef for the generated value type π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> typedef
__gnu_cxx::__conditional_type<(sizeof(_Result_type1) > std::xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 >::sizeof (_Result_type2)
The type of the generated random value.
π Friends And Related Function Documentation π
π operator!= [friend] π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> bool operator!= (const
xor_combine< _UniformRandomNumberGenerator1, __s1,
_UniformRandomNumberGenerator2, __s2 > & __lhs, const xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 > & __rhs) [friend]
Compares two xor_combine random number generator objects of the same type for inequality.
Parameters:
__lhsβ Axor_combinerandom number generator object.__rhsβ Anotherxor_combinerandom number generator object.
Returns:
true if the two objects are not equal, false otherwise.
Definition at line 1399 of file tr1_impl/random.
π operator<< [friend] π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> template<class
_UniformRandomNumberGenerator11 , int __s11, class
_UniformRandomNumberGenerator21 , int __s21, typename _CharT , typename
_Traits > std::basic_ostream<_CharT, _Traits>& operator<<
(std::basic_ostream< _CharT, _Traits > & __os, const xor_combine<
_UniformRandomNumberGenerator11, __s11, _UniformRandomNumberGenerator21,
__s21 > & __x) [friend]
Inserts the current state of a xor_combine random number generator engine __x into the output stream __os.
Parameters:
__osβ An output stream.__xβ Axor_combinerandom number generator engine.
Returns:
The output stream with the state of __x inserted or in an error state.
π operator== [friend] π
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> bool operator== (const
xor_combine< _UniformRandomNumberGenerator1, __s1,
_UniformRandomNumberGenerator2, __s2 > & __lhs, const xor_combine<
_UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2,
__s2 > & __rhs) [friend]
Compares two xor_combine random number generator objects of the same type for equality.
Parameters:
__lhsβ Axor_combinerandom number generator object.__rhsβ Anotherxor_combinerandom number generator object.
Returns:
true if the two objects are equal, false otherwise.
Definition at line 1382 of file tr1_impl/random.
π¦ operator>> [friend] π¦
template<class _UniformRandomNumberGenerator1, int __s1, class
_UniformRandomNumberGenerator2, int __s2> template<class
_UniformRandomNumberGenerator11 , int __s11, class
_UniformRandomNumberGenerator21 , int __s21, typename _CharT , typename
_Traits > std::basic_istream<_CharT, _Traits>& operator>>
(std::basic_istream< _CharT, _Traits > & __is, xor_combine<
_UniformRandomNumberGenerator11, __s11, _UniformRandomNumberGenerator21,
__s21 > & __x) [friend]
Extracts the current state of a xor_combine random number generator engine __x from the input stream __is.
Parameters:
__isβ An input stream.__xβ Axor_combinerandom number generator engine.
Returns:
The input stream with the state of __x extracted or in an error state.
π§ Author π§
Generated automatically by Doxygen for libstdc++ from the source code. So yeah, it's a Doxygen situation ππ
Okay bye bestie! π«Ά The footer says source/version libstdc++, date 21 Apr 2009, and page std::xor_combine(3). Mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms