mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Updated documentation
This commit is contained in:
parent
fa05fa6e40
commit
66359e8532
2
misc.h
2
misc.h
@ -2080,6 +2080,7 @@ T StringToWord(const std::string &str, ByteOrder order = BIG_ENDIAN_ORDER)
|
||||
template <bool overflow> struct SafeShifter;
|
||||
|
||||
//! \class SafeShifter<true>
|
||||
//! \brief Shifts a value in the presence of overflow
|
||||
//! \details the \p true template parameter indicates overflow would occur.
|
||||
//! In this case, SafeShifter clamps the value and returns 0.
|
||||
template<> struct SafeShifter<true>
|
||||
@ -2110,6 +2111,7 @@ template<> struct SafeShifter<true>
|
||||
};
|
||||
|
||||
//! \class SafeShifter<false>
|
||||
//! \brief Shifts a value in the absence of overflow
|
||||
//! \details the \p false template parameter indicates overflow would \a not occur.
|
||||
//! In this case, SafeShifter returns the shfted value.
|
||||
template<> struct SafeShifter<false>
|
||||
|
Loading…
Reference in New Issue
Block a user