Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::erased_type

      From cppreference.com
      <cpp‎ |experimental
       
       
       
       
      Defined in header<experimental/utility>
      struct erased_type{};
      (library fundamentals TS)
      (removed in library fundamentals TS v3)

      The classerased_type is an empty struct that serves as a placeholder for a type in situations where the actual type is determined at runtime. For example, in classes that usetype-erased allocators, the nested typedefallocator_type is an alias forerased_type.

      [edit]Notes

      erased_type is removed in LFTS v3 becausestd::pmr::polymorphic_allocator<> is preferable for type erasure.

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

      [8]ページ先頭

      ©2009-2025 Movatter.jp