Horizon
Public Member Functions | Friends | List of all members
Catch::pluralise Class Reference

Helper for streaming a "count [maybe-plural-of-label]" human-friendly string. More...

#include <catch_amalgamated.hpp>

Public Member Functions

constexpr pluralise (std::uint64_t count, StringRef label)
 

Friends

std::ostream & operator<< (std::ostream &os, pluralise const &pluraliser)
 

Detailed Description

Helper for streaming a "count [maybe-plural-of-label]" human-friendly string.

Usage example:

std::cout << "Found " << pluralise(count, "error") << '\n';
_t< detail::count_< L, T > > count
Count the number of times a type T appears in the list L.
Definition: meta.hpp:2725

Important: The provided string must outlive the instance


The documentation for this class was generated from the following file: