https://codeforwin.org/c-programming/c-program-to-get-value-of-nth-bit-of-number
| 331 | |
| 332 | // https://codeforwin.org/c-programming/c-program-to-get-value-of-nth-bit-of-number |
| 333 | bool OHDUtil::get_nth_bit(long number, int position) { |
| 334 | const bool bit_status = (number >> position) & 1; |
| 335 | return bit_status; |
| 336 | } |
| 337 | |
| 338 | void OHDUtil::ltrim(std::string& s) { |
| 339 | s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](unsigned char ch) { |
nothing calls this directly
no outgoing calls
no test coverage detected