Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
test::fail_count::fail_count (2 of 2 overloads)

Construct a counter.

Synopsis
fail_count(
    std::size_t n,
    error_code ev = make_error_code(error::test_failure));
Description Parameters

Name

Description

n

The 0-based index of the operation to fail on or after

ev

An optional error code to use when generating a simulated failure


PrevUpHomeNext