A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to be zero at compile-time. It is also used for tagged dispatch.
More...
|
class | null |
| A zero class with a null output adapter. More...
|
|
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to be zero at compile-time. It is also used for tagged dispatch.
- Source files
-
- See also
- Foam::one
Definition at line 62 of file zero.H.
◆ value_type
◆ zero() [1/2]
Default construct.
Definition at line 72 of file zero.H.
◆ zero() [2/2]
|
inlineexplicitconstexprnoexcept |
Construct from Istream consumes no content.
Definition at line 75 of file zero.H.
◆ operator bool()
constexpr operator bool |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return false (0) for bool.
Definition at line 79 of file zero.H.
◆ operator label()
constexpr operator label |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for label.
Definition at line 85 of file zero.H.
◆ operator float()
constexpr operator float |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for float.
Definition at line 91 of file zero.H.
◆ operator double()
constexpr operator double |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for double.
Definition at line 97 of file zero.H.
The documentation for this class was generated from the following file:
- src/OpenFOAM/primitives/zero/zero.H