scalable.H File Reference

Trait to identify types which are "scalable"; 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 scalable.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  scalable< Type >
 

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Typedefs

template<class Type , class Void = void>
using enableIfScalable = std::enable_if_t< scalable< Type >::value, Void >
 
template<class Type , class Void = void>
using enableIfNotScalable = std::enable_if_t<!scalable< Type >::value, Void >
 

Detailed Description

Trait to identify types which are "scalable"; 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 scalable.H

Struct Foam::scalable

Definition in file scalable.H.