I have 2 std::bitsets [0][1][1] and [1][1][0][1]. I want to concatenate them into [0][1][1][1][1][0][1], which equals 61 in decimal.
The std::min is very different from std::min_element!!
C++ memory management can be tricky without RAII. But I will try to convince you to use RAII within 3 lines of code.