Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::pmr::null_memory_resource

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

      Returns a pointer to amemory_resource that doesn't perform any allocation.

      [edit] Return value

      Returns a pointerp to a static storage duration object of a type derived fromstd::experimental::pmr::memory_resource, with the following properties:

      • itsallocate() function always throwsstd::bad_alloc;
      • itsdeallocate() function has no effect;
      • for anymemory_resourcer,p->is_equal(r) returns&r == p.

      The same value is returned every time this function is called.

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp