More C++ Idioms/Exploding Return Type

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Exploding Return Type
[edit]

Intent[edit]

An idiom to return either by error code or by throwing an exception.

Also Known As[edit]

Motivation[edit]

Solution and Sample Code[edit]

Known Uses[edit]

Related Idioms[edit]

References[edit]