C++是一个庞大的编程语言体系,它的高效性是可以直接连接硬件系统,它的灵活性是不断迭代完善的通用语义机制,当下C++的发展演进可谓一路狂奔。不同应用中需要知道C++对应的平台或者版本的功能特性,标准库信息、C++编译器特性等,例如:
C++ GENERAL __cplusplus 202002 __cpp_exceptions 199711 __cpp_rtti 199711C++11 CORE __cpp_alias_templates 200704 __cpp_attributes 200809 __cpp_constexpr 201907 __cpp_decltype 200707 __cpp_delegating_constructors 200604 __cpp_inheriting_constructors 201511 __cpp_initializer_lists 200806 __cpp_lambdas 200907 __cpp_nsdmi 200809 __cpp_range_based_for 201603 __cpp_raw_strings 200710 __cpp_ref_qualifiers 200710 __cpp_rvalue_references 200610 __cpp_static_assert 201411 __cpp_threadsafe_static_init 200806 __cpp_unicode_characters 200704 __cpp_unicode_literals 200710 __cpp_user_defined_literals 200809 __cpp_variadic_templates 200704C++14 CORE __cpp_aggregate_nsdmi 201304 __cpp_binary_literals 201304 __cpp_constexpr 201907 __cpp_decltype_auto 201304 __cpp_generic_lambdas 201707 __cpp_init_captures 201803 __cpp_return_type_deduction 201304 __cpp_sized_deallocation ------ __cpp_variable_templates 201304
这么多。。。。。。。也因此美若繁星花海。
C++功能特性细节请看下面的官方链接内容。
功能特性测试中文链接:
功能特性测试 (C++20) - cppreference.com
功能特性测试英文链接:
Feature testing (since C++20) - cppreference.com
关于C++代码的属性说明符:
Attribute specifier sequence(since C++11) - cppreference.com