Feature testing (since C++20) - cppreference.com

en.cppreference.com

Tin mới

You are encouraged to create an account and log in; however, it is not mandatory

You are encouraged to log in; however, it is not mandatory [o]

Discussion about the content page [t]

This page is protected. You can view its source [e]

Past revisions of this page [h]

cpp/compiler support

Freestanding and hosted

cpp/standard library

Standard library headers

Named requirements

Language support library

Diagnostics library

Memory management library

Metaprogramming library

Containers library

Algorithms library

Text processing library

Date and time library

Input/output library

Filesystem library

Concurrency support library

Execution control library

Technical specifications

External libraries

preprocessor macros

The standard defines a set of preprocessor macros corresponding to C++ language and library features introduced in C++11 or later. They are intended as a simple and portable way to detect the presence of said features.

cpp/language/attributes

The standard defines a set of preprocessor macros corresponding to C++ language and library features introduced in C++11 or later. They are intended as a simple and portable way to detect the presence of said features.

cpp/preprocessor/conditional

The standard defines a set of preprocessor macros corresponding to C++ language and library features introduced in C++11 or later. They are intended as a simple and portable way to detect the presence of said features.

cpp/language/attributes/assume

cpp/compiler support/23

carries_dependency

cpp/compiler support/11

cpp/language/attributes/deprecated

cpp/compiler support/14

cpp/language/attributes/fallthrough

cpp/compiler support/17

cpp/language/attributes/indeterminate

cpp/compiler support/26

cpp/language/attributes/likely

cpp/compiler support/20

cpp/language/attributes/maybe unused

cpp/language/attributes/no unique address

cpp/language/attributes/nodiscard

cpp/language/attributes/noreturn

cpp/language/aggregate initialization

default member initializers

direct initialization

cpp/language/type alias

Dynamic memory allocation for over-aligned data

Casting an expression to a prvalue

cpp/language/integer literal