![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
Safely left shift values when undefined behavior could occur. More...
#include <misc.h>
Safely left shift values when undefined behavior could occur.
| bits | the number of bit positions to shift the value |
| T | class or type |
| value | the value to left shift |
SafeLeftShift safely shifts the value to the left when undefined behavior could occur under C/C++ rules. SafeLeftShift will return the shifted value or 0 if undefined behavior would occur.
1.8.11