A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/basic.stc.static below:

[basic.stc.static]

6 Basic concepts [basic] 6.7 Storage duration [basic.stc] 6.7.1 Static storage duration [basic.stc.static]

If a variable with static storage duration has initialization or a destructor with side effects, it shall not be eliminated even if it appears to be unused, except that a class object or its copy/move may be eliminated as specified in [class.copy].

The keyword static can be used to declare a local variable with static storage duration. [Note: [stmt.dcl] describes the initialization of local static variables; [basic.start.term] describes the destruction of local static variables. end note]

The keyword static applied to a class data member in a class definition gives the data member static storage duration.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4