halcheck 1.0
Loading...
Searching...
No Matches
halcheck::gen::is_arbitrary< T > Struct Template Reference

Determines if a type supports generating arbitrary values. More...

#include <arbitrary.hpp>

Inheritance diagram for halcheck::gen::is_arbitrary< T >:
halcheck::lib::is_detected< detail::is_arbitrary_helper, lib::remove_cv_t< T > >

Detailed Description

template<typename T>
struct halcheck::gen::is_arbitrary< T >

Determines if a type supports generating arbitrary values.

Template Parameters
TThe type of value to query.

The type T satisfies is_arbitrary if and only if it is not a reference type and the expression arbitrary(gen::tag<T>(), lib::atom()) returns a value convertible to type T. Note that, by default, this holds for the following cases:


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