Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Extensions for parallelism

      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
       
       
      Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard (except for dynamic execution policy andexception_list) as of 3/2016; seethe algorithm library(since C++17)

      The C++ Extensions for Parallelism, ISO/IEC TS 19570:2015 defines the following new components for the C++ standard library:

      Contents

      [edit]Execution policies

      The parallelism TS describes three execution policies:sequential,parallel, andparallel+vector, and provides corresponding execution policy types and objects. Users may select an execution policy statically by invoking a parallel algorithm with the an execution policy object of the corresponding type, or dynamically by using the type-erasingexecution_policy class.

      Implementations may define additional execution policies as an extension. The semantics of parallel algorithms invoked with an execution policy object of implementation-defined type is implementation-defined.

      execution policy types
      (class)
      global execution policy objects
      (constant)
      dynamic execution policy
      (class)
      test whether a class represents an execution policy
      (class template)

      [edit]Exception lists

      exceptions raised during parallel executions
      (class)

      [edit]Parallelized versions of existing algorithms

      The TS providesparallelized versions of the following 69 algorithms from <algorithm>, <numeric> and <memory>:

      Standard library algorithms for which parallelized versions are provided

      [edit]New algorithms

      Defined in header<experimental/algorithm>
      similar tostd::for_each except returns void
      (function template)
      applies a function object to the first n elements of a sequence
      (function template)
      Defined in header<experimental/numeric>
      (parallelism TS)
      similar tostd::accumulate, except out of order
      (function template)[edit]
      similar tostd::partial_sum, excludes the ith input element from the ith sum
      (function template)
      similar tostd::partial_sum, includes the ith input element in the ith sum
      (function template)
      (parallelism TS)
      applies a functor, then reduces out of order
      (function template)[edit]
      applies a functor, then calculates exclusive scan
      (function template)
      applies a functor, then calculates inclusive scan
      (function template)
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/parallelism&oldid=164226"

      [8]ページ先頭

      ©2009-2025 Movatter.jp