Classes | Public Types | Public Member Functions | List of all members
zero Class Reference

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

Inheritance diagram for zero:
Inheritance graph
[legend]

Classes

class  null
 

Public Types

typedef zero value_type
 

Public Member Functions

constexpr zero () noexcept
 
constexpr zero (Istream &) noexcept
 
constexpr operator bool () const noexcept
 
constexpr operator label () const noexcept
 
constexpr operator float () const noexcept
 
constexpr operator double () const noexcept
 

Detailed Description

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 58 of file zero.H.

Member Typedef Documentation

◆ value_type

typedef zero value_type

Definition at line 62 of file zero.H.

Constructor & Destructor Documentation

◆ zero() [1/2]

constexpr zero ( )
inlineconstexprnoexcept

Definition at line 68 of file zero.H.

◆ zero() [2/2]

constexpr zero ( Istream )
inlineexplicitconstexprnoexcept

Definition at line 71 of file zero.H.

Member Function Documentation

◆ operator bool()

constexpr operator bool ( ) const
inlineconstexprnoexcept

Definition at line 75 of file zero.H.

◆ operator label()

constexpr operator label ( ) const
inlineconstexprnoexcept

Definition at line 81 of file zero.H.

◆ operator float()

constexpr operator float ( ) const
inlineconstexprnoexcept

Definition at line 87 of file zero.H.

◆ operator double()

constexpr operator double ( ) const
inlineconstexprnoexcept

Definition at line 93 of file zero.H.


The documentation for this class was generated from the following file: