If we were using sets both for the power and the equipflags, we could use a more elegant check if one is a subset of the other by using the Includes algorithm from the standard library 
http://stdcxx.apache.org/doc/stdlibref/includes.html

    bool has_equip_flages = std::includes(set_one.begin(), set_one.end(), set_two.begin(), set_two.end()))