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...
#include <zero.H>
|
| static zero | dummy |
| | A static instance, when modifiable reference is required by an API.
|
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 57 of file zero.H.
◆ value_type
The value type.
Definition at line 64 of file zero.H.
◆ zero() [1/2]
◆ zero() [2/2]
|
|
inlineexplicitconstexprnoexcept |
Construct from Istream consumes no content.
Definition at line 79 of file zero.H.
◆ operator bool()
◆ operator label()
◆ operator float()
◆ operator double()
| operator double |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator[]()
| zero operator[] |
( |
const label | | ) |
const |
|
inlinenoexcept |
Component-wise or element-wise access returns zero.
Definition at line 105 of file zero.H.
References zero().
◆ operator()()
| zero operator() |
( |
const T & | | ) |
const |
|
inlineconstexprnoexcept |
◆ dummy
The documentation for this class was generated from the following files:
- src/OpenFOAM/primitives/traits/zero.H
- src/OpenFOAM/primitives/traits/zero.C