Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::indirectly_copyable_storable

      From cppreference.com
      <cpp‎ |iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      indirectly_copyable_storable
      (C++20)  
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
      Defined in header<iterator>
      (since C++20)

      Theindirectly_copyable_storable concept specifies the relationship between anindirectly_readable type and anindirectly_writable type. In addition toindirectly_copyable, this concept specifies that the copy from theindirectly_readable type can be performed via an intermediate object.

      [edit]Semantic requirements

      In andOut modelstd::indirectly_copyable_storable<In, Out> only if given a dereferenceable valuei of typeIn:

      • After the definitionstd::iter_value_t<In> obj(*i);,obj is equal to the value previously denoted by*i, and
      • ifstd::iter_reference_t<In> is an rvalue reference type,*i is placed in a valid but unspecified state after the initialization ofobj.

      [edit]Equality preservation

      Expressions declared inrequires expressions of the standard library concepts are required to beequality-preserving (except where stated otherwise).

      [edit]See also

      specifies that values may be copied from anindirectly_readable type to anindirectly_writable type
      (concept)[edit]
      specifies that values may be moved from anindirectly_readable type to anindirectly_writable type and that the move may be performed via an intermediate object
      (concept)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/indirectly_copyable_storable&oldid=159903"

      [8]ページ先頭

      ©2009-2025 Movatter.jp