type: std::int
[contents]

Contents

Syntax

The syntax for std::int definitions is:

f++:  
std::int definitions
std::int(definitions)
:=(std::int, definitions)
n++:  
@std::int definitions
@std::int(definitions)
@:=(std::int, definitions)

Note: If you are using the first syntax for variable definitions and want to have more code and/or text following on the same line then simply end the definition with ';'.

Description

The std::int type is used for integer values.

Note: ExprTk does not have direct access to variables of type std::int, if you want the convenience and efficiency of direct access then use int.

Note: If you need to define thousands of variables then := is faster, plus it has useful error messages for unrecognised types.

Options

The following options are available for std::int definitions:

option description
const definition of a constant
layer="x" define variable at layer x
private definition of a private
scope+="x" add x to scopes variable can be accessed from
option description

f++ example

Examples of std::int being defined with f++:

std::int a=10, b=12
std::int(x, y, z)
:=(std::int, count = 15)

n++ example

Examples of std::int being defined with n++:

@std::int a=10, b=12
@std::int(x, y, z)
@:=(std::int, count = 15)