Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::pmr::synchronized_pool_resource::synchronized_pool_resource

      From cppreference.com
      <cpp‎ |memory‎ |synchronized pool resource
       
       
      Memory management library
      (exposition only*)
      Allocators
      Uninitialized memory algorithms
      Constrained uninitialized memory algorithms
      Memory resources
      Uninitialized storage(until C++20)
      (until C++20*)
      (until C++20*)
      Garbage collector support(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
      (C++11)(until C++23)
       
       
      synchronized_pool_resource();
      (1)(since C++17)
      explicit synchronized_pool_resource(std::pmr::memory_resource* upstream);
      (2)(since C++17)
      explicit synchronized_pool_resource(conststd::pmr::pool_options& opts);
      (3)(since C++17)
      synchronized_pool_resource(conststd::pmr::pool_options& opts,
                                 std::pmr::memory_resource* upstream);
      (4)(since C++17)
      synchronized_pool_resource(const synchronized_pool_resource&)= delete;
      (5)(since C++17)

      Constructs asynchronized_pool_resource.

      1-4) Constructs asynchronized_pool_resource using the specified upstream memory resource and tuned according to the specified options. The resulting object holds a copy ofupstream but does not own the resource to whichupstream points.
      The overloads not takingopts as a parameter uses a default constructed instance ofpool_options as the options. The overloads not takingupstream as a parameter uses the return value ofstd::pmr::get_default_resource as the upstream memory resource.
      5) Copy constructor is deleted.

      [edit] Parameters

      opts - astd::pmr::pool_options struct containing the constructor options
      upstream - the upstream memory resource to use

      [edit] Exceptions

      1-4) Throws only if a call to theallocate() function of the upstream resource throws. It is unspecified if or under what conditions such a call takes place.
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/memory/synchronized_pool_resource/synchronized_pool_resource&oldid=155235"

      [8]ページ先頭

      ©2009-2025 Movatter.jp