Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::projected_value_t

      From cppreference.com
      <cpp‎ |iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      projected_value_t
      (C++26)
      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++26)

      The alias templateprojected_value_t obtains the value type by stripping any reference and its topmost cv-qualifiers of the result type of applyingProj tostd::iter_value_t<I>&.

      projected_value_t is used to determine the default value type in some algorithms such asranges::contains.

      Contents

      [edit]Template parameters

      I - an indirectly readable type
      Proj - projection applied to an lvalue reference to value type ofI

      [edit]Notes

      Feature-test macroValueStdFeature
      __cpp_lib_algorithm_default_value_type202403L(C++26)default template type for algorithm values usingstd::projected_value_t

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      computes the result of invoking a callable object on the result of dereferencing some set ofindirectly_readable types
      (alias template)[edit]
      (C++20)
      helper template for specifying the constraints on algorithms that accept projections
      (alias template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/projected_value_t&oldid=173606"

      [8]ページ先頭

      ©2009-2025 Movatter.jp