|
MallocAllocator | malloc_alloc () noexcept |
| Creates a memory allocator using the standard's malloc under the hood Does no memory tracking Ideal for production/release/high performance.
|
|
ThreadLocalDebugAllocator | debug_alloc_thread_local () noexcept |
| NOT THREAD SAFE!
|
|
ThreadLocalFixedBufferAllocator | fixed_buff_thread_local (Slice< u8 > bytes) noexcept |
| NOT THREAD SAFE!
|
|
ThreadLocalFixedArenaAllocator | fixed_arena_thread_local (Slice< u8 > bytes) noexcept |
| NOT THREAD SAFE!
|
|
ThreadLocalDynamicArenaAllocator | dynamic_arena_thread_local (Allocator *root, size_t elementSizeHint, size_t elementCountHint) noexcept |
| NOT THREAD SAFE!
|
|
constexpr auto | is_bom (const char32_t ch) |
| Checks if a character is a BOM in native ordering.
|
|
constexpr auto | is_bom_rev_16_bit (const char16_t ch) |
| Checks if a 16-bit character is a BOM in reverse ordering.
|
|
constexpr auto | is_bom_rev_32_bit (const char32_t ch) |
| Checks if a 32-bit character is a BOM in reverse ordering.
|
|
Optional< std::endian > | u16_detect_endian (const char16_t ch) |
| Tries to detect the endian encoding based on a possible BOM mark.
|
|
Optional< std::endian > | u32_detect_endian (const char32_t ch) |
| Tries to detect the endian encoding based on a possible BOM mark.
|
|
constexpr bool | is_surrogate (char16_t ch) |
| Checks if UTF-16 character is a surrogate.
|
|
constexpr bool | is_high_surrogate (char16_t ch) |
| Checks if UTF-16 character is a high surrogate *.
|
|
constexpr bool | is_low_surrogate (char16_t ch) |
| Checks if UTF-16 character is a low surrogate *.
|
|
SliceU16Native | endian_from_native_slice (Slice< char16_t > s) |
| Gets a UTF-16 endian slice from a slice which is assumed ot be native endian.
|
|
SliceU32Native | endian_from_native_slice (Slice< char32_t > s) |
| Gets a UTF-32 endian slice from a slice which is assumed ot be native endian.
|
|
SliceU16Le | endian_from_le_slice (Slice< char16_t > s) |
| Gets a UTF-16 endian slice from a slice which is assumed ot be little endian.
|
|
SliceU32Le | endian_from_le_slice (Slice< char32_t > s) |
| Gets a UTF-32 endian slice from a slice which is assumed ot be little endian.
|
|
SliceU16Be | endian_from_be_slice (Slice< char16_t > s) |
| Gets a UTF-16 endian slice from a slice which is assumed ot be big endian.
|
|
SliceU32Be | endian_from_be_slice (Slice< char32_t > s) |
| Gets a UTF-32 endian slice from a slice which is assumed ot be big endian.
|
|
std::variant< SliceU16Le, SliceU16Be > | endian_from_slice (Slice< char16_t > s) |
| Gets a UTF-16 endian slice from an input slice Will try to use the first character of the slice as a BOM to detect endianness If endian detection fails, will assume native endian Since endian slices are distinct types, this will return a variant (typed union) If there is a BOM, will drop it.
|
|
std::variant< SliceU32Le, SliceU32Be > | endian_from_slice (Slice< char32_t > s) |
| Gets a UTF-32 endian slice from an input slice Will try to use the first character of the slice as a BOM to detect endianness If endian detection fails, will assume native endian Since endian slices are distinct types, this will return a variant (typed union) If there is a BOM, will drop it.
|
|
Slice< char16_t > | slice_from_native_endian (SliceU16Native s) |
| Gets a normal slice from a native endian slice.
|
|
Slice< const char16_t > | slice_from_native_endian (SliceConstU16Native s) |
| Gets a normal slice from a native endian slice.
|
|
Slice< char32_t > | slice_from_native_endian (SliceU32Native s) |
| Gets a normal slice from a native endian slice.
|
|
Slice< const char32_t > | slice_from_native_endian (SliceConstU32Native s) |
| Gets a normal slice from a native endian slice.
|
|
Slice< char16_t > | slice_from_le_endian (SliceU16Native s) |
| Gets a normal slice from a little endian slice.
|
|
Slice< const char16_t > | slice_from_le_endian (SliceConstU16Native s) |
| Gets a normal slice from a little endian slice.
|
|
Slice< char32_t > | slice_from_le_endian (SliceU32Native s) |
| Gets a normal slice from a little endian slice.
|
|
Slice< const char32_t > | slice_from_le_endian (SliceConstU32Native s) |
| Gets a normal slice from a little endian slice.
|
|
Slice< char16_t > | slice_from_be_endian (SliceU16Native s) |
| Gets a normal slice from a big endian slice.
|
|
Slice< const char16_t > | slice_from_be_endian (SliceConstU16Native s) |
| Gets a normal slice from a big endian slice.
|
|
Slice< char32_t > | slice_from_be_endian (SliceU32Native s) |
| Gets a normal slice from a big endian slice.
|
|
Slice< const char32_t > | slice_from_be_endian (SliceConstU32Native s) |
| Gets a normal slice from a big endian slice.
|
|
CharSeq | rune_to_str (Rune rune) |
| Converts a UTF-32 Rune to a sequence of char.
|
|
U8Seq | rune_to_utf8 (Rune rune) |
| Converts a UTF-32 Rune to a utf-8 sequence.
|
|
U16Seq | rune_to_utf16 (Rune rune) |
| Converts a UTF-32 Rune to a utf-16 sequence.
|
|
Result< Rune, RuneConversionError > | utf8_to_rune (const Slice< const char8_t > &rune) |
| UTF-8 to a Rune.
|
|
Result< Rune, RuneConversionError > | str_to_rune (const Slice< const char > &rune) |
| Characters to a Rune.
|
|
Result< Rune, RuneConversionError > | utf16_to_rune (const Slice< const char16_t > &rune) |
| UTF-16 to a Rune.
|
|
Result< Rune, RuneConversionError > | utf16_to_rune (const SliceConstU16Native &rune) |
| UTF-16 to a Rune.
|
|
RuneIterator< char > | str_rune_iterator (const Slice< const char > &s) |
| Rune iterator for a slice of characters.
|
|
RuneIterator< char8_t > | utf8_rune_iterator (const Slice< const char8_t > &s) |
| Rune iterator for a UTF8 sequence.
|
|
RuneIterator< char16_t > | utf16_rune_iterator (const Slice< const char16_t > &s) |
| Rune iterator for a UTF16 sequence.
|
|
RuneIterator< char16_t > | utf16_rune_iterator (const SliceConstU16Le &s) |
| Rune iterator for a little endian UTF16 sequence.
|
|
RuneIterator< char16_t > | utf16_rune_iterator (const SliceConstU16Be &s) |
| Rune iterator for a big endian UTF16 sequence.
|
|
RuneIterator< char16_t > | utf16_rune_iterator (const SliceU16Le &s) |
| Rune iterator for a little endian UTF16 sequence.
|
|
RuneIterator< char16_t > | utf16_rune_iterator (const SliceU16Be &s) |
| Rune iterator for a big endian UTF16 sequence.
|
|
RuneIterator< char32_t > | utf32_rune_iterator (const Slice< const char32_t > &s) |
| Rune iterator for a UTF32 sequence.
|
|
RuneIterator< char32_t > | utf32_rune_iterator (const SliceConstU32Le &s) |
| Rune iterator for a little endian UTF32 sequence.
|
|
RuneIterator< char32_t > | utf32_rune_iterator (const SliceConstU32Be &s) |
| Rune iterator for a big endian UTF32 sequence.
|
|
RuneIterator< char32_t > | utf32_rune_iterator (const SliceU32Le &s) |
| Rune iterator for a little endian UTF32 sequence.
|
|
RuneIterator< char32_t > | utf32_rune_iterator (const SliceU32Be &s) |
| Rune iterator for a big endian UTF32 sequence.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf16 (io::Writer< WI > &writer, const SliceConstU32Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-16 string Can optionally write a BOM to the prefix.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf16 (io::Writer< WI > &writer, const SliceConstU32Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-16 string Can optionally write a BOM to the prefix.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf16 (io::Writer< WI > &writer, const Slice< const char32_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-16 string Can optionally write a BOM to the prefix.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf8 (io::Writer< WI > &writer, const SliceConstU32Be &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-8 string.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf8 (io::Writer< WI > &writer, const SliceConstU32Le &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-8 string.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf8 (io::Writer< WI > &writer, const Slice< const char32_t > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to UTF-8 string.
|
|
template<WriterImpl WI> |
auto | utf32_to_str (io::Writer< WI > &writer, const SliceConstU32Be &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to character sequence (UTF-8 encoded chars)
|
|
template<WriterImpl WI> |
auto | utf32_to_str (io::Writer< WI > &writer, const SliceConstU32Le &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to character sequence (UTF-8 encoded chars)
|
|
template<WriterImpl WI> |
auto | utf32_to_str (io::Writer< WI > &writer, const Slice< const char32_t > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-32 string to character sequence (UTF-8 encoded chars)
|
|
template<WriterImpl WI> |
auto | utf8_to_utf32 (io::Writer< WI > &writer, const Slice< const char8_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-8 string to UTF-32.
|
|
template<WriterImpl WI> |
auto | str_to_utf32 (io::Writer< WI > &writer, const Slice< const char > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-8 string to UTF-32.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf8 (io::Writer< WI > &writer, const SliceConstU16Be &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf32 (io::Writer< WI > &writer, const SliceConstU16Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-32.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf32 (io::Writer< WI > &writer, const SliceConstU16Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-32.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf32 (io::Writer< WI > &writer, const Slice< const char16_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-32.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf8 (io::Writer< WI > &writer, const SliceConstU16Le &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf16_to_str (io::Writer< WI > &writer, const SliceConstU16Be &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf16_to_str (io::Writer< WI > &writer, const SliceConstU16Le &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf8 (io::Writer< WI > &writer, const Slice< const char16_t > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf16_to_str (io::Writer< WI > &writer, const Slice< const char16_t > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-16 string to UTF-8.
|
|
template<WriterImpl WI> |
auto | utf8_to_utf16 (io::Writer< WI > &writer, const Slice< const char8_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-8 string to UTF-16.
|
|
template<WriterImpl WI> |
auto | str_to_utf16 (io::Writer< WI > &writer, const Slice< const char > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-8 string to UTF-16.
|
|
template<WriterImpl WI> |
auto | utf8_to_str (io::Writer< WI > &writer, const Slice< const char8_t > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a UTF-8 string to character sequence.
|
|
template<WriterImpl WI> |
auto | str_to_utf8 (io::Writer< WI > &writer, const Slice< const char > &str) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Will convert a character sequence to UTF-8 string.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf16le (io::Writer< WI > &writer, const SliceConstU16Native &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts native UTF-16 to UTF-16 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf16le (io::Writer< WI > &writer, const Slice< const char16_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts native UTF-16 to UTF-16 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf16be (io::Writer< WI > &writer, const SliceConstU16Native &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts native UTF-16 to UTF-16 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf16_to_utf16be (io::Writer< WI > &writer, const Slice< const char16_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts native UTF-16 to UTF-16 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf16le_to_utf16be (io::Writer< WI > &writer, const SliceConstU16Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-16 Little Endian to UTF-16 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf16be_to_utf16le (io::Writer< WI > &writer, const SliceConstU16Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-16 Big Endian to UTF-16 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf16le_to_utf16 (io::Writer< WI > &writer, const SliceConstU16Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-16 Little Endian to Native UTF-16.
|
|
template<WriterImpl WI> |
auto | utf16be_to_utf16 (io::Writer< WI > &writer, const SliceConstU16Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-16 Big Endian to Native UTF-16.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf32le (io::Writer< WI > &writer, const SliceConstU32Native &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Native Endian to UTF-32 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf32le (io::Writer< WI > &writer, const Slice< const char32_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Native Endian to UTF-32 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf32be (io::Writer< WI > &writer, const SliceConstU32Native &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Native Endian to UTF-32 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf32_to_utf32be (io::Writer< WI > &writer, const Slice< const char32_t > &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Native Endian to UTF-32 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf32le_to_utf32be (io::Writer< WI > &writer, const SliceConstU32Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Little Endian to UTF-32 Big Endian.
|
|
template<WriterImpl WI> |
auto | utf32be_to_utf32le (io::Writer< WI > &writer, const SliceConstU32Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Big Endian to UTF-32 Little Endian.
|
|
template<WriterImpl WI> |
auto | utf32le_to_utf32 (io::Writer< WI > &writer, const SliceConstU32Le &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Little Endian to UTF-32 Native Endian.
|
|
template<WriterImpl WI> |
auto | utf32be_to_utf32 (io::Writer< WI > &writer, const SliceConstU32Be &str, bool writeBom=false) -> Result< size_t, typename io::Writer< WI >::ErrType > |
| Converts UTF-32 Big Endian to UTF-32 Native Endian.
|
|
constexpr u16 | flip_endian_u16 (const u16 bytes) |
| Flips the endianness of a u16.
|
|
constexpr char16_t | flip_endian_ch16 (const char16_t ch) |
| Flips the endianness of a char16.
|
|
constexpr u32 | flip_endian_u32 (const u32 bytes) |
| Flips the endianness of a u3.
|
|
constexpr char32_t | flip_endian_ch32 (const char32_t ch) |
| Flips the endianness of a char32.
|
|
template<typename T> |
constexpr auto | flip_endian (const T bytes) |
| Flips the endian of a u16, char16, u32, or char32.
|
|
template<typename T> |
Success< T > | success (const T &v) |
| Creates a successful Result.
|
|
Success< void > | success () |
| Creates a successful void Result object.
|
|
template<typename Underlying> |
Error< Underlying > | error (Underlying err) |
| Creates an error.
|
|
constexpr Slice< char32_t > | mut_slice_from (char32_t *cstr, size_t len) |
| Creates a mutable slice from a utf32 string and length.
|
|
constexpr Slice< char32_t > | mut_slice_from (char32_t *cstr) |
| Creates a mutable slice from a utf32 string in the form of a c string.
|
|
constexpr Slice< const char32_t > | slice_from (char32_t *cstr) |
| Creates a slice from a utf32 string in the form of a c string.
|
|
constexpr Slice< const char32_t > | slice_from (char32_t *cstr, size_t len) |
| Creates a slice from a utf32 string and length.
|
|
constexpr Slice< const char32_t > | slice_from (const char32_t *cstr, size_t len) |
| Creates a slice from a utf32 string and length.
|
|
constexpr Slice< const char32_t > | slice_from (const char32_t *cstr) |
| Creates a slice from a utf32 string in the form of a c string.
|
|
constexpr Slice< char16_t > | mut_slice_from (char16_t *cstr, size_t len) |
| Creates a mutable slice from a utf16 string and length.
|
|
constexpr Slice< const char16_t > | slice_from (char16_t *cstr, size_t len) |
| Creates a slice from a utf16 string and length.
|
|
constexpr Slice< const char16_t > | slice_from (const char16_t *cstr, size_t len) |
| Creates a slice from a utf16 string and length.
|
|
constexpr Slice< char8_t > | mut_slice_from (char8_t *cstr, size_t len) |
| Creates a mutable slice from a utf8 string and length.
|
|
constexpr Slice< const char8_t > | slice_from (char8_t *cstr, size_t len) |
| Creates a slice from a utf8 string and length.
|
|
constexpr Slice< const char8_t > | slice_from (const char8_t *cstr, size_t len) |
| Creates a slice from a utf8 string and length.
|
|
constexpr Slice< char16_t > | mut_slice_from (char16_t *cstr) |
| Creates a mutable slice from a utf16 string in the form of a c string.
|
|
constexpr Slice< const char16_t > | slice_from (char16_t *cstr) |
| Creates a slice from a utf16 string in the form of a c string.
|
|
constexpr Slice< const char16_t > | slice_from (const char16_t *cstr) |
| Creates a slice from a utf16 string in the form of a c string.
|
|
constexpr Slice< char8_t > | mut_slice_from (char8_t *cstr) |
| Creates a mutable slice from a utf8 string in the form of a c string.
|
|
constexpr Slice< const char8_t > | slice_from (char8_t *cstr) |
| Creates a slice from a utf8 string in the form of a c string.
|
|
constexpr Slice< const char8_t > | slice_from (const char8_t *cstr) |
| Creates a slice from a utf8 string in the form of a c string.
|
|
constexpr Slice< const char > | slice_from (char *cstr) |
| Creates a slice from a string in the form of a c string.
|
|
constexpr Slice< const char > | slice_from (const char *cstr) |
| Creates a slice from a string in the form of a c string.
|
|
constexpr Slice< const char > | slice_from (char *cstr, const size_t len) |
| Creates a slice from a string with a length.
|
|
constexpr Slice< char > | mut_slice_from (char *cstr, const size_t len) |
| Creates a mutable slice from a string with a length.
|
|
constexpr Slice< const char > | slice_from (const char *cstr, const size_t len) |
| Creates a slice from a string with a length.
|
|
Slice< const char > | slice_from (const std::string &str) |
| Creates a slice from a std::string.
|
|
constexpr Slice< const char > | slice_from (const std::string_view &sv) |
| Creates a slice from a std::string_view.
|
|
template<typename T> |
Slice< std::add_const_t< T > > | slice_from (const std::vector< T > &arr) |
| Creates a slice from a vector.
|
|
template<typename T> |
Slice< T > | mut_slice_from (std::vector< T > &arr) |
| Creates a mutable slice from a vector.
|
|
template<typename T, size_t N> |
constexpr Slice< std::add_const_t< T > > | slice_from (const std::array< T, N > &arr) |
| Creates a slice from an array.
|
|
template<typename T, size_t N> |
constexpr Slice< T > | mut_slice_from (std::array< T, N > &arr) |
| Creates a mutable slice from an array.
|
|
Slice< char > | mut_slice_from (char *cstr) |
| Creates a mutable slice from a c string.
|
|
Slice< char > | mut_slice_from (std::string &str) |
| Creates a mutable slice from a string.
|
|
template<typename Left, typename Right> |
std::strong_ordering | str_compare (const Left &left, const Right &right) |
| Compares two string strings for ordering.
|
|
template<typename L, typename R> |
bool | str_equal (const L &left, const R &right) |
| Compares two string strings for ordering.
|
|
template<class... Ts> |
| overload (Ts...) -> overload< Ts... > |
|
Prng | tinymt_init (uint64_t seed) noexcept |
| Initializes a PRNG based on the TinyMT variant of Mersenne Twister.
|
|
Prng | lcg_init (uint64_t seed) noexcept |
| Initializes a Linear Congruential Generator NOTE: THIS IS NOT A GOOD PRNG (it's essentially rand())
|
|
Result< Prng, Mt19937_64Error > | mt19937_64 (Allocator *alloc, uint64_t seed) noexcept |
| Initializes a Mersenne Twister 19937-64 algorithm Note: This does require allocated memory.
|
|