A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that are known to be zero at compile-time.
More...
|
class | null |
| A zero class with a null output adapter. More...
|
|
A class representing the concept of 0 (zero), which can be used to avoid manipulating objects that are known to be zero at compile-time.
- Source files
-
- See also
- Foam::one
Definition at line 61 of file zero.H.
◆ value_type
◆ zero() [1/2]
Null constructible.
Definition at line 70 of file zero.H.
◆ zero() [2/2]
|
inlineexplicitconstexprnoexcept |
Construct from Istream consumes no content.
Definition at line 73 of file zero.H.
◆ operator bool()
constexpr operator bool |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return false (0) for bool.
Definition at line 77 of file zero.H.
◆ operator label()
constexpr operator label |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for label.
Definition at line 83 of file zero.H.
◆ operator float()
constexpr operator float |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for float.
Definition at line 89 of file zero.H.
◆ operator double()
constexpr operator double |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Return 0 for double.
Definition at line 95 of file zero.H.
The documentation for this class was generated from the following file:
- src/OpenFOAM/primitives/zero/zero.H