In an A380 the pilots' rest compartment is located just aft of the cockpit. Aboard Boeing's 787 Dreamliner it's above the main deck, up a short flight of stairs above the forward cabin. In other twin-aisle aircraft pilots' sleeping quarters might be below or adjacent to the cockpit.