Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

const

Indicates that a function has no effect other than returning a value and that it uses only its arguments to generate that return value.

Syntax

Windows* OS:

__declspec(const)

Linux* OS:

__attribute__((const))

Arguments

None

Description

This keyword is equivalent to the gcc* attribute const and applies to function declarations.