Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::pmr::set_default_resource

      From cppreference.com
      <cpp‎ |experimental
       
       
       
       
       
      memory_resource* set_default_resource( memory_resource* r)noexcept;
      (library fundamentals TS)

      Ifr is not null, sets the default memory resource pointer tor; otherwise, sets the default memory resource pointer tonew_delete_resource().

      Thedefault memory resource pointer is used by certain facilities when an explicit memory resource is not supplied. The initial default memory resource pointer is the return value ofnew_delete_resource().

      This function is thread-safe. Every call toset_default_resourcesynchronizes with (seestd::memory_order) the subsequentset_default_resource andget_default_resource calls.

      [edit]Return value

      Returns the previous value of the default memory resource pointer.

      [edit] See also

      gets the defaultmemory_resource
      (function)[edit]
      returns a static program-widememory_resource that uses the globaloperator new andoperator delete to allocate and deallocate memory
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/set_default_resource&oldid=155750"

      [8]ページ先頭

      ©2009-2025 Movatter.jp