scaleable.H File Reference

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...

Include dependency graph for scaleable.H:
This graph shows which files directly or indirectly include this file:

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 >
 

Detailed Description

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.