Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::allocator<T>::allocator

      From cppreference.com
      <cpp‎ |memory‎ |allocator
       
       
      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)
       
       
      (1)
      allocator()throw();
      (until C++11)
      allocator()noexcept;
      (since C++11)
      (until C++20)
      constexpr allocator()noexcept;
      (since C++20)
      (2)
      allocator(const allocator& other)throw();
      (until C++11)
      allocator(const allocator& other)noexcept;
      (since C++11)
      (until C++20)
      constexpr allocator(const allocator& other)noexcept;
      (since C++20)
      (3)
      template<class U>
      allocator(const allocator<U>& other)throw();
      (until C++11)
      template<class U>
      allocator(const allocator<U>& other)noexcept;
      (since C++11)
      (until C++20)
      template<class U>
      constexpr allocator(const allocator<U>& other)noexcept;
      (since C++20)

      Constructs the default allocator. Since the default allocator is stateless, the constructors have no visible effect.

      [edit]Parameters

      other - another allocator to construct with
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/memory/allocator/allocator&oldid=108398"

      [8]ページ先頭

      ©2009-2025 Movatter.jp