QDocTests::Numbers Class | Qt
Description: The Numbers class provides functions for manipulating numbers.

# QDocTests::Numbers Class

class QDocTests::Numbers

The Numbers class provides functions for manipulating numbers. More...

Header: | `#include <Numbers>`

- List of all members, including inherited members

## Public Functions

T | add(T a, T b)
auto | add(int a, int b)
auto | adder(ThisIsMyReallyLongAndComplicatedTemplateName a, int b)
auto | number() const
void | setNumber(int number)
auto | subtract(int a, int b)

## Detailed Description

## Member Function Documentation

### template <typename T> T Numbers::add(T a, T b)

Adds two numbers of the same underlying type.

Returns a value containing the sum of a and b.

### auto Numbers::add(int a, int b)

Adds two numbers.

Returns an integer containing the sum of a and b.

### template <typename ThisIsMyReallyLongAndComplicatedTemplateName> auto Numbers::adder(ThisIsMyReallyLongAndComplicatedTemplateName a, int b)

Adds two numbers of the same underlying type.

Returns a value containing the sum of a and b.

### auto Numbers::number() const

Returns the number.

Returns the number, whatever it may be.

See also setNumber().

### void Numbers::setNumber(int number)

Sets the number.

Sets the number to number, and expects nothing more.

See also number().

### auto Numbers::subtract(int a, int b)

Subtracts two numbers.

Returns an integer containing the difference of a and b.