Table of Contents
Previous Section Next Section

exceptions

#include <iostream>iostate exceptions() const;void exceptions(iostate flags);

The exceptions( ) function is a member of ios.

The first form returns an iostate object that indicates which flags cause an exception. The second form sets these values.

A related function is rdstate( ).


Table of Contents
Previous Section Next Section