Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
default_distribution.hpp
Go to the documentation of this file.
1// Copyright 2026, Toyota Motor Corporation
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TESTING_DEFAULT_DISTRIBUTION_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TESTING_DEFAULT_DISTRIBUTION_HPP_
7
9
10namespace arene {
11namespace base {
12namespace testing {
13
14/// @brief Customization point selecting the default distribution used to generate values of type @c T.
15/// @tparam T The value type to generate
16///
17/// This variable template is used by the property test runtime whenever a property macro
18/// auto-generates an argument of type @c T. The primary template yields a default-constructed
19/// @c bitwise_uniform_distribution<T>. Specialize it for a user type to change that type's default generation
20/// strategy without modifying the framework, for example:
21///
22/// @code{.cpp}
23/// template <>
24/// constexpr auto default_distribution<my_type> = my_type_distribution{};
25/// @endcode
26template <class T>
28
29} // namespace testing
30} // namespace base
31} // namespace arene
32
33#endif // INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_TESTING_DEFAULT_DISTRIBUTION_HPP_
A uniform distribution to apply on top of a bit generator. Primary template (deliberately undefined).
Definition bitwise_uniform_distribution.hpp:29
Definition customization.hpp:31
constexpr bitwise_uniform_distribution< T > default_distribution
Customization point selecting the default distribution used to generate values of type T.
Definition accumulate.hpp:37
Definition accumulate.hpp:36