Trait to identify types which are "scaleable"; i.e., that can be multiply-equals-d with a scalar. This has to be done explicitly, rather than by identifying the existence of the operator with decltype, in order to exclude bool and int and similar. More...


Go to the source code of this file.
Classes | |
| struct | scaleable< Type > |
Namespaces | |
| Foam | |
| Namespace for OpenFOAM. | |
Typedefs | |
| template<class Type , class Void = void> | |
| using | enableIfScaleable = std::enable_if_t< scaleable< Type >::value, Void > |
| template<class Type , class Void = void> | |
| using | enableIfNotScaleable = std::enable_if_t<!scaleable< Type >::value, Void > |
Trait to identify types which are "scaleable"; i.e., that can be multiply-equals-d with a scalar. This has to be done explicitly, rather than by identifying the existence of the operator with decltype, in order to exclude bool and int and similar.
Original source file scaleable.H
Struct Foam::scaleable
Definition in file scaleable.H.