Yahoo! (YHOO) on Monday disclosed in an SEC filing that CEO Marissa Mayer will resign from her role on the struggling internet company's board once the planned acquisition of Yahoo's core assets by Verizon (VZ) - Get Report is completed.

It's the latest chapter in the story of female tech company CEOs, of which there have been several prominent examples in recent years. For many, their tenure has been underscored by the fact that they risk falling off a "glass cliff."

The glass cliff describes how women are more likely to be put in leadership positions during an "unsettled time" in the company. Mayer and Meg Whitman, the CEO of Hewlett Packard Enterprise (HPE) - Get Report  and Chairwoman of HP Inc. (HPQ) - Get Report , are just a few examples of women who inherited companies in a state of disrepair.

Stories of faltering female tech CEOs may stand out because there are so few of them leading large companies to begin with. Women make up just 4% of all CEOs in S&P 500 companies -- 20 in all. Of those 20, five serve in tech-related industries, according to the National Center for Women and Information Technology.

Despite some negative sentiment, several female tech CEOs have spearheaded major, successful restructuring programs that helped drive significant growth at their respective companies. 

Here's a look at how five female CEOs have fared as leaders of major tech companies: