|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
#include <array>#include <concepts>#include <cstddef>#include <tuple>#include <type_traits>#include <utility>Go to the source code of this file.
Classes | |
| struct | wuzp::FailOnInstantiation< T > |
| False for every type, so that a static_assert on it fails only when the template that names it is instantiated, e.g. a specialization or an overload that rejects its arguments with a message. More... | |
| struct | wuzp::Cat< Tuples > |
| struct | wuzp::ExtractAndApply< X, std::tuple< Ts... > > |
| struct | wuzp::SelectIf< bool > |
| struct | wuzp::SelectIf< false > |
| struct | wuzp::IfThenElse< true, TypeA, TypeB > |
| struct | wuzp::IfThenElse< false, TypeA, TypeB > |
| struct | wuzp::IsSpecialization< T, Template > |
| Whether T is a specialization of Template. More... | |
| struct | wuzp::IsSpecialization< Template1< Args... >, Template2 > |
| struct | wuzp::GetSubsetImpl< Start, End, Increment, std::tuple< Ts... >, std::index_sequence< Is... > > |
| struct | wuzp::IsHomogeneous< Ts > |
| struct | wuzp::IsHomogeneous< std::tuple< Ts... > > |
Namespaces | |
| namespace | wuzp |
Concepts | |
| concept | wuzp::Specializable |
| Whether the template can be specialized with the arguments, e.g. whether their number fits and they satisfy its constraints. | |
| concept | wuzp::CopiesOrMoves |
| Whether constructing a Class from the arguments copies or moves it, i.e. whether they are a single Class. | |
Typedefs | |
| template<int Size, typename T> | |
| using | wuzp::HomogeneousTuple = decltype(std::tuple_cat(std::declval<std::array<T, std::size_t{Size}>>())) |
| template<int Start, int End, int Increment, typename Tuple> | |
| using | wuzp::GetSubset = GetSubsetImpl<Start, End, Increment, Tuple, std::make_index_sequence<std::tuple_size<Tuple>::value>> |
Functions | |
| template<typename First, typename... Rest> | |
| void | wuzp::applyCommas (First &&first, Rest &&... rest) |
| Applies the comma operator from left to right: applyCommas(a, b, c) evaluates ((a, b), c). | |
Variables | |
| template<typename T, typename... Ts> | |
| constexpr bool | wuzp::areSame = std::conjunction_v<std::is_same<T, Ts>...> |
| template<typename ScalarT_, typename ValueT_> | |
| constexpr bool | wuzp::isConvertedToValueType = std::is_same_v<std::common_type_t<ScalarT_, ValueT_>, ValueT_> |
| Whether an arithmetic scalar of the type ScalarT_ is converted into the value type ValueT_: if their common type (the type of their sum in C++) is the value type, e.g. an int scalar with double values, but not a double scalar with int or float values, nor an unsigned scalar with int values, whose sum would be unsigned. | |