C++ standard libraries extensions, version 3
cppreference.com
< cpp | experimental
Version 3 of the C++ Extensions for Library Fundamentals, defines the following new components for the C++ standard library, in addition to those defined in version 1 and version 2.
std::experimental::make_array and components merged into C++17/20 are excluded from LFTS v3.
Scope guard
<experimental/scope> 헤더에 정의됨. | |
| 함수 객체를 감싸서 범위(scope)를 벗어날 때 호출합니다 (class template) | |
| 함수 객체를 감싸서 예외로 인해 범위(scope)를 벗어날 때 호출합니다 (class template) | |
| 함수 객체를 감싸서 범위(scope)를 정상적으로 벗어날 때 호출합니다 (class template) | |
| universal RAII resource handle wrapper (class template) |
Feature test macros
<experimental/scope> 헤더에 정의됨. | |
__cpp_lib_experimental_scope |
a value of at least 201902 indicates that the scope guard are supported (macro constant) |