Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      C++ standard libraries extensions, version 3

      From cppreference.com
      <cpp‎ |experimental
       
       
      Experimental
      Technical Specification
      Filesystem library(filesystem TS)
      Library fundamentals(library fundamentals TS)
      Library fundamentals 2(library fundamentals TS v2)
      Library fundamentals 3(library fundamentals TS v3)
      Extensions for parallelism(parallelism TS)
      Extensions for parallelism 2(parallelism TS v2)
      Extensions for concurrency(concurrency TS)
      Extensions for concurrency 2(concurrency TS v2)
      Concepts(concepts TS)
      Ranges(ranges TS)
      Reflection(reflection TS)
      Mathematical special functions(special functions TR)
      Experimental Non-TS
      Pattern Matching
      Linear Algebra
      std::execution
      Contracts
      2D Graphics
       
       

      Version 3 of the C++ Extensions for Library Fundamentals, ISO/IEC TS 19568:2024, defines the following new components for the C++ standard library, in addition to those defined inversion 1 andversion 2.

      Components merged into C++17/20 and the following components are removed in LFTS v3:

      [edit]Scope guard

      Defined in header<experimental/scope>
      wraps a function object and invokes it on exiting the scope
      (class template)[edit]
      wraps a function object and invokes it on exiting the scope through an exception
      (class template)[edit]
      wraps a function object and invokes it on exiting the scope normally
      (class template)[edit]
      universal RAII resource handle wrapper
      (class template)[edit]

      [edit]Feature test macros

      __cpp_lib_experimental_memory_resources
      a value of at least201803 indicates thatresource_adaptor is supported
      (macro constant)
      Defined in header<experimental/functional>
      __cpp_lib_experimental_function_polymorphic_allocator
      a value of at least202211 indicates thatstd::pmr::polymorphic_allocator<> is used forstd::experimental::function
      (macro constant)
      Defined in header<experimental/scope>
      __cpp_lib_experimental_scope
      a value of at least201902 indicates that the scope guards are supported
      (macro constant)

      [edit]Notes

      The value of__cpp_lib_experimental_memory_resources has been increased in LFTS v3, because the design ofresource_adaptor is rebased ontostd::pmr::memory_resource.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/lib_extensions_3&oldid=177541"

      [8]ページ先頭

      ©2009-2025 Movatter.jp