[boost] Does this algorithm exist?