Related eBooks

I’m studying for the upcoming pr review club.

        if (!m_foreign_outputs.empty()) {
             std::string s(m_foreign_outputs.size(), 0);
             for (auto i = m_foreign_outputs.size(); i--; ) {
                 if (m_foreign_outputs.at(i)) {
                     s[i / 8] |= 1 << (i % 8);
                 }
             }
             mapValueCopy["fout"] = s;
         }

What is that for loop doing? and how is it not stuck forever?
Also what is happening here: s[i / 8] |= 1 << (i % 8);

Thanks!

source

By pplny

답글 남기기

이메일 주소는 공개되지 않습니다.

Translate »