Dupa() { Params params(std::tie(x, xbool), std::tie(y, ybool), std::tie(z, zbool)); boost::fusion::for_each(params, Filler()); }
//------------------------------------------------------------------------------ int main(){ std::list<int> l(10); std::iota(l.begin(), l.end(), Filler(1,10)); std::cout << "Contents of the list: "; for(auto n: l) { std::cout << n << ' '; } std::cout << std::endl; return 0; }
void PassengerThread::TakeRide() { strstream *Space; Space = Filler(3); // build leading spaces Queue.Wait(); // join the queue for a ride CheckIn.Wait(); // time to check in // save my name and increase the counter On_board_passenger_ID[On_board_passenger_counter] = passenger_Id; On_board_passenger_counter++; cout << Space->str() << ThreadName.str() <<" is on board the car" << endl; // if I am the last one to be on board, boarding completes and the car is full if (On_board_passenger_counter == Capacity) Boarding.Signal(); CheckIn.Signal(); // allow next passenger to check in Riding.Wait(); // I am riding in the car Unloading.Signal(); // get off the car }