void BP::escrever(ostream & out) { BP temp = *this; while (!temp.empty()) { cout << temp.front() << endl; temp.pop(); } }